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
main.cpp@4:ddde4c060cb4, 2018-10-18 (annotated)
- Committer:
- mbrun
- Date:
- Thu Oct 18 10:35:47 2018 +0000
- Revision:
- 4:ddde4c060cb4
- Parent:
- 2:e57d136225f5
otro cambio
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 | } |
mbrun | 2:e57d136225f5 | 13 | //primera modifcación |
mbrun | 4:ddde4c060cb4 | 14 | //segunda |
mbrun | 4:ddde4c060cb4 | 15 | //cambio otro |