Edwin Foster
/
HelloWorld
First mbed program example and usage
Fork of HelloWorld by
Diff: main.cpp
- Revision:
- 2:9debb94a4c8c
- Parent:
- 0:fb6bbc10ffa0
- Child:
- 3:26b01dec4312
diff -r 03c191369089 -r 9debb94a4c8c main.cpp --- a/main.cpp Sun Jan 01 20:57:57 2012 +0000 +++ b/main.cpp Sat Oct 18 13:19:48 2014 +0000 @@ -1,12 +1,15 @@ #include "mbed.h" -DigitalOut myled(LED1); +DigitalOut outled1(LED1); +DigitalOut outled3(LED3); int main() { while(1) { - myled = 1; - wait(0.2); - myled = 0; - wait(0.2); + outled1 = 1; + outled3 = 0; + wait(1); + outled1= 0; + outled3 = 1; + wait(1); } }