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