MMIA
Dependencies: MMA8451Q TSI USBDevice mbed
Diff: main.cpp
- Revision:
- 0:0024ab6b9624
- Child:
- 1:4f62fc36c30d
diff -r 000000000000 -r 0024ab6b9624 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Oct 12 12:41:36 2012 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +int main() +{ + DigitalOut gpo(PTB8); + DigitalOut led(LED_RED); + + while(1) { + gpo = 1; + led=1; // Off + wait(2); + gpo = 0; + led=0; // on + wait(2); + } +} \ No newline at end of file