add blinking LED example
This commit is contained in:
parent
88e932ca6c
commit
a8177deb21
6
main.c
6
main.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue