Rob Toulson
/
RealTimeLab02_LEDBlinker
Real Time Lab Program
Diff: main.cpp
- Revision:
- 0:569757d5ecc1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Jan 25 16:25:50 2015 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" + +DigitalOut A(p21); +DigitalOut B(p22); +DigitalOut C(p23); +DigitalOut D(p24); +DigitalOut E(p25); + +int main() { + + while(1) { + A=1; + B=0; + C=1; + D=0; + E=0; + wait(0.5); + A=0; + B=1; + C=0; + D=1; + E=1; + wait(0.5); + } +}