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
while (true) { // endless loop for micro-controller
/* go to sleep and wait for next interrupt */
set_sleep_mode(SLEEP_MODE_IDLE);
sleep_mode();
/* blinking LED example */
led_toggle();
_delay_ms(500);
}
return 0;
}