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: libxDot-dev-mbed5-deprecated
main.cpp@0:a2b10381d7d2, 2021-09-01 (annotated)
- Committer:
- nicolasvt
- Date:
- Wed Sep 01 03:43:06 2021 +0000
- Revision:
- 0:a2b10381d7d2
tarea_2
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| nicolasvt | 0:a2b10381d7d2 | 1 | #include <mbed.h> | 
| nicolasvt | 0:a2b10381d7d2 | 2 | |
| nicolasvt | 0:a2b10381d7d2 | 3 | DigitalOut myled(LED1); | 
| nicolasvt | 0:a2b10381d7d2 | 4 | |
| nicolasvt | 0:a2b10381d7d2 | 5 | int main(void){ | 
| nicolasvt | 0:a2b10381d7d2 | 6 | while(1){ | 
| nicolasvt | 0:a2b10381d7d2 | 7 | myled = 1; | 
| nicolasvt | 0:a2b10381d7d2 | 8 | wait(0.5) | 
| nicolasvt | 0:a2b10381d7d2 | 9 | myled = 0; | 
| nicolasvt | 0:a2b10381d7d2 | 10 | wait(0.5); | 
| nicolasvt | 0:a2b10381d7d2 | 11 | } | 
| nicolasvt | 0:a2b10381d7d2 | 12 | } | 
| nicolasvt | 0:a2b10381d7d2 | 13 |