se agregó un led y se cambio el tiempo a 0.5

Dependencies:   mbed

Committer:
Otakutronics
Date:
Sat Dec 15 17:41:36 2018 +0000
Revision:
0:8663eadc1caf
Child:
1:a5b91628cfc6
mi primer ensayo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Otakutronics 0:8663eadc1caf 1 #include "mbed.h"
Otakutronics 0:8663eadc1caf 2
Otakutronics 0:8663eadc1caf 3 DigitalOut gpo(D0);
Otakutronics 0:8663eadc1caf 4 DigitalOut led(LED_RED);
Otakutronics 0:8663eadc1caf 5
Otakutronics 0:8663eadc1caf 6 int main()
Otakutronics 0:8663eadc1caf 7 {
Otakutronics 0:8663eadc1caf 8 while (true) {
Otakutronics 0:8663eadc1caf 9 gpo = !gpo; // toggle pin
Otakutronics 0:8663eadc1caf 10 led = !led; // toggle led
Otakutronics 0:8663eadc1caf 11 wait(0.2f);
Otakutronics 0:8663eadc1caf 12 }
Otakutronics 0:8663eadc1caf 13 }