Example program that exercises most of the capabilities of the mbed application shield (via arduino headers) with ST Nucleo board
Dependencies: C12832 LM75B MMA7660 mbed
main.cpp
- Committer:
- screamer
- Date:
- 2014-01-30
- Revision:
- 0:51be560629b8
- Child:
- 2:a9c2014f9bd5
File content as of revision 0:51be560629b8:
#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); } } }