Nathan Yonkee
/
mbed-os-example-blinky_copy
copy of mbed-os-example-blinky
main.cpp@1:5127448aa699, 2017-04-27 (annotated)
- Committer:
- tulanthoar
- Date:
- Thu Apr 27 16:03:40 2017 -0600
- Revision:
- 1:5127448aa699
- Parent:
- 0:ea82a5a12af4
change to LED3 to distinguish from every other blinky
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tulanthoar | 0:ea82a5a12af4 | 1 | #include "mbed.h" |
tulanthoar | 0:ea82a5a12af4 | 2 | |
tulanthoar | 1:5127448aa699 | 3 | DigitalOut led1(LED3); |
tulanthoar | 0:ea82a5a12af4 | 4 | |
tulanthoar | 0:ea82a5a12af4 | 5 | // main() runs in its own thread in the OS |
tulanthoar | 0:ea82a5a12af4 | 6 | int main() { |
tulanthoar | 0:ea82a5a12af4 | 7 | while (true) { |
tulanthoar | 0:ea82a5a12af4 | 8 | led1 = !led1; |
tulanthoar | 0:ea82a5a12af4 | 9 | wait(0.5); |
tulanthoar | 0:ea82a5a12af4 | 10 | } |
tulanthoar | 0:ea82a5a12af4 | 11 | } |
tulanthoar | 0:ea82a5a12af4 | 12 |