![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
The example program for mbed pin-compatible platforms
Dependencies: mbed
Fork of mbed_blinky by
main.cpp@3:2e347c65be00, 2014-03-18 (annotated)
- Committer:
- stevep
- Date:
- Tue Mar 18 11:04:22 2014 +0000
- Revision:
- 3:2e347c65be00
- Parent:
- 2:c30dc3ae7426
- Child:
- 4:81cea7a352b0
revert
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 | |
dan | 0:7dec7e9ac085 | 3 | DigitalOut myled(LED1); |
dan | 0:7dec7e9ac085 | 4 | |
dan | 0:7dec7e9ac085 | 5 | int main() { |
dan | 0:7dec7e9ac085 | 6 | while(1) { |
dan | 0:7dec7e9ac085 | 7 | myled = 1; |
dan | 0:7dec7e9ac085 | 8 | wait(0.2); |
dan | 0:7dec7e9ac085 | 9 | myled = 0; |
stevep | 3:2e347c65be00 | 10 | wait(0.2); } |
dan | 0:7dec7e9ac085 | 11 | } |