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:1a9e43062039, 2020-04-21 (annotated)
- Committer:
- fernandac
- Date:
- Tue Apr 21 01:50:03 2020 +0000
- Revision:
- 0:1a9e43062039
led encendido
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| fernandac | 0:1a9e43062039 | 1 | #include "mbed.h" |
| fernandac | 0:1a9e43062039 | 2 | |
| fernandac | 0:1a9e43062039 | 3 | DigitalOut myled(LED1); |
| fernandac | 0:1a9e43062039 | 4 | DigitalIn buton (PTA4); |
| fernandac | 0:1a9e43062039 | 5 | Serial contador(USBTX, USBRX); |
| fernandac | 0:1a9e43062039 | 6 | int main() |
| fernandac | 0:1a9e43062039 | 7 | { |
| fernandac | 0:1a9e43062039 | 8 | while(1) { |
| fernandac | 0:1a9e43062039 | 9 | myled = 1; |
| fernandac | 0:1a9e43062039 | 10 | wait(5); |
| fernandac | 0:1a9e43062039 | 11 | myled = 0; |
| fernandac | 0:1a9e43062039 | 12 | wait(5); |
| fernandac | 0:1a9e43062039 | 13 | } |
| fernandac | 0:1a9e43062039 | 14 | } |