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@1:d35e41960d86, 2018-04-09 (annotated)
- Committer:
- lawis
- Date:
- Mon Apr 09 12:31:41 2018 +0000
- Revision:
- 1:d35e41960d86
- Parent:
- 0:16dc5273708d
- Child:
- 2:c69c9100ee12
- Child:
- 3:c0f4a91b1d9c
aha j'ai modif;
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." |