John Doe
/
demo_program
My blinking LEDs
Fork of demo_program by
main.cpp@6:9f428344c4ee, 2012-06-07 (annotated)
- Committer:
- dan
- Date:
- Thu Jun 07 14:45:49 2012 +0000
- Revision:
- 6:9f428344c4ee
- Parent:
- 5:75210a3db173
- Child:
- 7:9b6915e1191c
Changed LED2 to LED1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
screamer | 0:ea96942621d5 | 1 | #include "mbed.h" |
screamer | 0:ea96942621d5 | 2 | |
dan | 6:9f428344c4ee | 3 | DigitalOut myled(LED1); |
screamer | 2:34d3bf46c928 | 4 | DigitalOut newled(LED3); |
screamer | 4:9681c944004e | 5 | DigitalOut newerled(LED4); |
screamer | 0:ea96942621d5 | 6 | |
screamer | 0:ea96942621d5 | 7 | int main() { |
screamer | 0:ea96942621d5 | 8 | while(1) { |
screamer | 0:ea96942621d5 | 9 | myled = 1; |
screamer | 2:34d3bf46c928 | 10 | newled = 1; |
screamer | 4:9681c944004e | 11 | newerled = 1; |
dan | 5:75210a3db173 | 12 | wait(0.5); |
screamer | 0:ea96942621d5 | 13 | myled = 0; |
screamer | 4:9681c944004e | 14 | newled = 0; |
screamer | 4:9681c944004e | 15 | newerled = 0; |
dan | 5:75210a3db173 | 16 | wait(0.5); |
screamer | 0:ea96942621d5 | 17 | } |
screamer | 0:ea96942621d5 | 18 | } |