Masahiro Hirano
/
demo_program
first folk
Fork of demo_program by
main.cpp@7:9b6915e1191c, 2012-06-26 (annotated)
- Committer:
- dan
- Date:
- Tue Jun 26 16:20:02 2012 +0000
- Revision:
- 7:9b6915e1191c
- Parent:
- 6:9f428344c4ee
- Child:
- 8:cb9b22d13f60
Test
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); |
dan | 7:9b6915e1191c | 17 | //test |
screamer | 0:ea96942621d5 | 18 | } |
screamer | 0:ea96942621d5 | 19 | } |