John Doe
/
demo_program
My blinking LEDs
Fork of demo_program by
main.cpp@5:75210a3db173, 2012-06-07 (annotated)
- Committer:
- dan
- Date:
- Thu Jun 07 14:44:48 2012 +0000
- Revision:
- 5:75210a3db173
- Parent:
- 4:9681c944004e
- Child:
- 6:9f428344c4ee
Increased the wait time to 0.5 seconds
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 | |
screamer | 1:42b1b06ed716 | 3 | DigitalOut myled(LED2); |
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 | } |