Gerardo Carmona
/
MSE_BusOut
BusOut example
main.cpp
- Committer:
- gcarmonar
- Date:
- 2014-11-20
- Revision:
- 0:14e600ce8429
File content as of revision 0:14e600ce8429:
#include "mbed.h" BusOut leds(LED1, D9, LED2, LED3); int x = 1; int main() { leds = 1; while (true) { leds = x; x = x << 1; if (x == 16){ x = 1; } printf("%d\n", x); wait(1); } }