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_Capa by
main.cpp@1:14f963b2716e, 2018-07-26 (annotated)
- Committer:
- mvargas_dtk
- Date:
- Thu Jul 26 16:36:35 2018 +0000
- Revision:
- 1:14f963b2716e
- Parent:
- 0:063bbe0f16d0
- Child:
- 2:4fa073ca0d36
// Programa para titilar LED de user
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fmanzano_dtk | 0:063bbe0f16d0 | 1 | // Ya está editado |
mvargas_dtk | 1:14f963b2716e | 2 | // Programa para titilar LED de user |
fmanzano_dtk | 0:063bbe0f16d0 | 3 | |
fmanzano_dtk | 0:063bbe0f16d0 | 4 | #include "mbed.h" |
fmanzano_dtk | 0:063bbe0f16d0 | 5 | |
fmanzano_dtk | 0:063bbe0f16d0 | 6 | DigitalOut myled(LED1); |
fmanzano_dtk | 0:063bbe0f16d0 | 7 | |
fmanzano_dtk | 0:063bbe0f16d0 | 8 | int main() { |
fmanzano_dtk | 0:063bbe0f16d0 | 9 | while(1) { |
fmanzano_dtk | 0:063bbe0f16d0 | 10 | myled = 1; // LED is ON |
fmanzano_dtk | 0:063bbe0f16d0 | 11 | wait(0.3); // 200 ms |
fmanzano_dtk | 0:063bbe0f16d0 | 12 | myled = 0; // LED is OFF |
fmanzano_dtk | 0:063bbe0f16d0 | 13 | wait(1.0); // 1 sec |
fmanzano_dtk | 0:063bbe0f16d0 | 14 | } |
fmanzano_dtk | 0:063bbe0f16d0 | 15 | } |