John Doe
/
led_test
LED test fork
Fork of led_test2 by
main.cpp@0:c036415c5965, 2013-08-08 (annotated)
- Committer:
- screamer
- Date:
- Thu Aug 08 12:37:44 2013 +0000
- Revision:
- 0:c036415c5965
- Child:
- 1:32f34ee5f90f
added led2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
screamer | 0:c036415c5965 | 1 | #include "mbed.h" |
screamer | 0:c036415c5965 | 2 | |
screamer | 0:c036415c5965 | 3 | DigitalOut myled(LED1); |
screamer | 0:c036415c5965 | 4 | DigitalOut myled2(LED2); |
screamer | 0:c036415c5965 | 5 | |
screamer | 0:c036415c5965 | 6 | int main() { |
screamer | 0:c036415c5965 | 7 | while(1) { |
screamer | 0:c036415c5965 | 8 | myled = 1; |
screamer | 0:c036415c5965 | 9 | myled2 = 0; |
screamer | 0:c036415c5965 | 10 | wait(0.2); |
screamer | 0:c036415c5965 | 11 | myled = 0; |
screamer | 0:c036415c5965 | 12 | myled2 = 1; |
screamer | 0:c036415c5965 | 13 | wait(0.2); |
screamer | 0:c036415c5965 | 14 | } |
screamer | 0:c036415c5965 | 15 | } |