John Doe
/
demo_program
My blinking LEDs
Fork of demo_program by
Revision 8:810b0bafbd65, committed 2013-05-16
- Comitter:
- wm
- Date:
- Thu May 16 15:55:58 2013 +0000
- Parent:
- 7:9b6915e1191c
- Commit message:
- vars myled, newled, newerled renamed to myled1, myled3, myled4 to match the physical LED numbering
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jun 26 16:20:02 2012 +0000 +++ b/main.cpp Thu May 16 15:55:58 2013 +0000 @@ -1,19 +1,18 @@ #include "mbed.h" -DigitalOut myled(LED1); -DigitalOut newled(LED3); -DigitalOut newerled(LED4); +DigitalOut myled1(LED1); +DigitalOut myled3(LED3); +DigitalOut myled4(LED4); int main() { while(1) { - myled = 1; - newled = 1; - newerled = 1; + myled1 = 1; + myled3 = 1; + myled4 = 1; wait(0.5); - myled = 0; - newled = 0; - newerled = 0; + myled1 = 0; + myled3 = 0; + myled4 = 0; wait(0.5); - //test } }