deepsleep() program for mbed LPC11U24 beta
main.cpp
- Committer:
- chris
- Date:
- 2011-10-20
- Revision:
- 0:1e4c251b7f9d
File content as of revision 0:1e4c251b7f9d:
#include "mbed.h" BusOut leds(LED1,LED2,LED3,LED4); InterruptIn wakeup(p14); void dostuff() { for (int i=0; i<5; i++) { leds = 1 << i; wait(0.25); } } int main () { wakeup.rise(NULL); while (1) { dostuff(); deepsleep(); } }