diff --git a/Distancer.cpp b/Distancer.cpp index 5cad373..4afe4d2 100644 --- a/Distancer.cpp +++ b/Distancer.cpp @@ -1,10 +1,29 @@ +#define F_CPU 1000000 + #include +#include #include "DeviceLib/ShiftRegister.h" +void setupStatusLedPin() +{ + DDRB |= (1 << PB0); +} + +void flashStatusLed() +{ + PORTB |= (1 << PB0); + _delay_ms(100); + PORTB &= ~(1 << PB0); +} + int main() { + setupStatusLedPin(); + while (true) { + flashStatusLed(); + _delay_ms(400); } } diff --git a/Distancer.cppproj b/Distancer.cppproj index 50b309a..f307610 100644 --- a/Distancer.cppproj +++ b/Distancer.cppproj @@ -20,12 +20,29 @@ false true true - + 0x20000000 true - + exception_table 2 0 + com.atmel.avrdbg.tool.stk500 + + 0x1E910B + + + + 125000 + + ISP + + com.atmel.avrdbg.tool.stk500 + + + STK500 + + ISP + 125000