Frederick Huang
/
ADXL345Test
ADXL345 Evaluation
Diff: main.cpp
- Revision:
- 0:51be560629b8
- Child:
- 2:0bc5af6c7ebf
diff -r 000000000000 -r 51be560629b8 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jan 30 17:06:58 2014 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + +DigitalOut red(D5); +DigitalOut blue(D8); +DigitalOut green(D9); +int i; + +int main() { + while(1) { + for (i=1; i<7; i++) { + red = i & 1; + blue = i & 2; + green = i & 4; + wait(0.2); + } + } +}