Robert Harrell
/
HelloWorld-HW1
publish test with HW1
Fork of HelloWorld by
Diff: main.cpp
- Revision:
- 2:0ce54f153548
- Parent:
- 0:fb6bbc10ffa0
- Child:
- 3:01c820a84ba3
--- a/main.cpp Sun Jan 01 20:57:57 2012 +0000 +++ b/main.cpp Mon Feb 03 05:51:19 2014 +0000 @@ -1,12 +1,18 @@ #include "mbed.h" -DigitalOut myled(LED1); +DigitalOut led0(LED1); +DigitalOut led1(LED2); +DigitalOut led2(LED3); +DigitalOut led3(LED4); int main() { while(1) { - myled = 1; - wait(0.2); - myled = 0; - wait(0.2); + for(int count=0; count < 16; count++) { + led0 = count & 0x1; + led1 = count & 0x2; + led2 = count & 0x4; + led3 = count & 0x8; + wait(1); + } } }