blink the blue LED of Xadow M0
Dependencies: mbed
Fork of mbed_blinky by
main.cpp@7:6acc714a143b, 2014-06-18 (annotated)
- Committer:
- yihui
- Date:
- Wed Jun 18 06:08:11 2014 +0000
- Revision:
- 7:6acc714a143b
- Parent:
- 4:81cea7a352b0
for xadow m0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dan | 0:7dec7e9ac085 | 1 | #include "mbed.h" |
dan | 0:7dec7e9ac085 | 2 | |
yihui | 7:6acc714a143b | 3 | DigitalOut blue_led(P0_20); |
dan | 0:7dec7e9ac085 | 4 | |
dan | 0:7dec7e9ac085 | 5 | int main() { |
dan | 0:7dec7e9ac085 | 6 | while(1) { |
yihui | 7:6acc714a143b | 7 | blue_led = 1; |
dan | 0:7dec7e9ac085 | 8 | wait(0.2); |
yihui | 7:6acc714a143b | 9 | blue_led = 0; |
stevep | 4:81cea7a352b0 | 10 | wait(0.2); |
stevep | 4:81cea7a352b0 | 11 | } |
dan | 0:7dec7e9ac085 | 12 | } |