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.
Fork of Nucleo_blink_led by
main.cpp@0:ac81eb32959e, 2018-10-18 (annotated)
- Committer:
- mbrun
- Date:
- Thu Oct 18 10:19:23 2018 +0000
- Revision:
- 0:ac81eb32959e
- Child:
- 1:9abfb6c32c3c
prueba;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbrun | 0:ac81eb32959e | 1 | #include "mbed.h" |
mbrun | 0:ac81eb32959e | 2 | |
mbrun | 0:ac81eb32959e | 3 | DigitalOut myled(LED1); |
mbrun | 0:ac81eb32959e | 4 | |
mbrun | 0:ac81eb32959e | 5 | int main() { |
mbrun | 0:ac81eb32959e | 6 | while(1) { |
mbrun | 0:ac81eb32959e | 7 | myled = 1; // LED is ON |
mbrun | 0:ac81eb32959e | 8 | wait(0.2); // 200 ms |
mbrun | 0:ac81eb32959e | 9 | myled = 0; // LED is OFF |
mbrun | 0:ac81eb32959e | 10 | wait(1.0); // 1 sec |
mbrun | 0:ac81eb32959e | 11 | } |
mbrun | 0:ac81eb32959e | 12 | } |