Mikel Brun / Mbed 2 deprecated Nucleo_blink_led

Dependencies:   mbed

Fork of Nucleo_blink_led by Mikel_y_JoseJuan

Committer:
mbrun
Date:
Thu Oct 18 10:28:46 2018 +0000
Revision:
2:41db19a2c2f3
Parent:
1:9abfb6c32c3c
Child:
3:04a8aa7b0cad
version3;

Who changed what in which revision?

UserRevisionLine numberNew 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:41db19a2c2f3 13 //primera modifcación
mbrun 2:41db19a2c2f3 14 //otra modificacion