Mac Lobdell
/
macs_mbed_blinky
the best program ever written
Diff: main.cpp
- Revision:
- 0:8878e15623e3
- Child:
- 1:0b410816f96b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jun 10 03:27:27 2016 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut thisled(LED1); +DigitalOut thatled(LED2); + +int main() { + while(1) { + thisled = 1; + thatled = 0; + wait(0.2); + thisled = 0; + thatled = 1; + wait(0.2); + } +}