add blinking LED example

This commit is contained in:
King Kévin 2015-02-26 13:55:25 +01:00
parent 88e932ca6c
commit a8177deb21
1 changed files with 3 additions and 3 deletions

6
main.c
View File

@ -77,9 +77,9 @@ int main(void)
io_init(); // initialize IOs io_init(); // initialize IOs
while (true) { // endless loop for micro-controller while (true) { // endless loop for micro-controller
/* go to sleep and wait for next interrupt */ /* blinking LED example */
set_sleep_mode(SLEEP_MODE_IDLE); led_toggle();
sleep_mode(); _delay_ms(500);
} }
return 0; return 0;
} }