Frederick Huang
/
ADXL345Test
ADXL345 Evaluation
main.cpp
- Committer:
- jeromecoutant
- Date:
- 2016-08-17
- Revision:
- 2:0bc5af6c7ebf
- Parent:
- 0:51be560629b8
- Child:
- 3:e4783c57bcc0
File content as of revision 2:0bc5af6c7ebf:
#include "mbed.h" DigitalOut red(LED1); DigitalOut blue(LED2); DigitalOut green(LED3); int i; int main() { while(1) { for (i=1; i<7; i++) { red = i & 1; blue = i & 2; green = i & 4; wait(0.2); } } }