Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of TestSTM32-3_LED_ext by
main.cpp@0:16dc5273708d, 2018-04-09 (annotated)
- Committer:
- JoshJohn
- Date:
- Mon Apr 09 12:23:55 2018 +0000
- Revision:
- 0:16dc5273708d
- Child:
- 1:d35e41960d86
Alrighty!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JoshJohn | 0:16dc5273708d | 1 | #include "mbed.h" |
JoshJohn | 0:16dc5273708d | 2 | |
JoshJohn | 0:16dc5273708d | 3 | DigitalOut myled(PH1); |
JoshJohn | 0:16dc5273708d | 4 | |
JoshJohn | 0:16dc5273708d | 5 | int main() { |
JoshJohn | 0:16dc5273708d | 6 | while(1) { |
JoshJohn | 0:16dc5273708d | 7 | myled = 1; // LED is ON |
JoshJohn | 0:16dc5273708d | 8 | wait(0.2); // 200 ms |
JoshJohn | 0:16dc5273708d | 9 | myled = 0; // LED is OFF |
JoshJohn | 0:16dc5273708d | 10 | wait(1.0); // 1 sec |
JoshJohn | 0:16dc5273708d | 11 | } |
JoshJohn | 0:16dc5273708d | 12 | } |