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.
main.cpp@0:9068c4600e24, 2020-06-30 (annotated)
- Committer:
- gemanruiz
- Date:
- Tue Jun 30 12:49:51 2020 +0000
- Revision:
- 0:9068c4600e24
prueba
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| gemanruiz | 0:9068c4600e24 | 1 | #include "mbed.h" |
| gemanruiz | 0:9068c4600e24 | 2 | |
| gemanruiz | 0:9068c4600e24 | 3 | DigitalOut myled(LED1); |
| gemanruiz | 0:9068c4600e24 | 4 | |
| gemanruiz | 0:9068c4600e24 | 5 | int main() { |
| gemanruiz | 0:9068c4600e24 | 6 | while(1) { |
| gemanruiz | 0:9068c4600e24 | 7 | myled = 1; // LED is ON |
| gemanruiz | 0:9068c4600e24 | 8 | wait(0.2); // 200 ms |
| gemanruiz | 0:9068c4600e24 | 9 | myled = 0; // LED is OFF |
| gemanruiz | 0:9068c4600e24 | 10 | wait(1.0); // 1 sec |
| gemanruiz | 0:9068c4600e24 | 11 | } |
| gemanruiz | 0:9068c4600e24 | 12 | } |