![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
The example program for mbed pin-compatible platforms
Fork of mbed_blinky by
main.cpp@21:d1bf97f68071, 2018-05-31 (annotated)
- Committer:
- jli94utk
- Date:
- Thu May 31 18:36:52 2018 +0000
- Revision:
- 21:d1bf97f68071
- Parent:
- 4:81cea7a352b0
Blink
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 | |
jli94utk | 21:d1bf97f68071 | 3 | DigitalOut myled(P0_19); |
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 | 4:81cea7a352b0 | 10 | wait(0.2); |
stevep | 4:81cea7a352b0 | 11 | } |
dan | 0:7dec7e9ac085 | 12 | } |