![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
project to test mbed-cli debugging
main.cpp@0:8032d2ab060f, 2018-08-01 (annotated)
- Committer:
- bhimebau
- Date:
- Wed Aug 01 18:34:28 2018 +0000
- Revision:
- 0:8032d2ab060f
initial commit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bhimebau | 0:8032d2ab060f | 1 | #include "mbed.h" |
bhimebau | 0:8032d2ab060f | 2 | |
bhimebau | 0:8032d2ab060f | 3 | DigitalOut led1(LED1); |
bhimebau | 0:8032d2ab060f | 4 | |
bhimebau | 0:8032d2ab060f | 5 | // main() runs in its own thread in the OS |
bhimebau | 0:8032d2ab060f | 6 | int main() { |
bhimebau | 0:8032d2ab060f | 7 | while (true) { |
bhimebau | 0:8032d2ab060f | 8 | led1 = !led1; |
bhimebau | 0:8032d2ab060f | 9 | wait(0.5); |
bhimebau | 0:8032d2ab060f | 10 | } |
bhimebau | 0:8032d2ab060f | 11 | } |
bhimebau | 0:8032d2ab060f | 12 |