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@5:6f62a732037f, 2018-04-09 (annotated)
- Committer:
- lawis
- Date:
- Mon Apr 09 13:01:12 2018 +0000
- Revision:
- 5:6f62a732037f
- Parent:
- 2:c69c9100ee12
ensuite;
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 | } |
lawis | 1:d35e41960d86 | 13 | //j'ai rajouté ça." |
JoshJohn | 2:c69c9100ee12 | 14 | |
JoshJohn | 2:c69c9100ee12 | 15 | // et moi j'add ceci |
lawis | 5:6f62a732037f | 16 | // et ça en plus |