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

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Otakutronics
Date:
Sat Dec 15 21:12:03 2018 +0000
Parent:
2:adcd761ae807
Commit message:
blink amarillo = verde y rojo

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Dec 15 17:46:54 2018 +0000
+++ b/main.cpp	Sat Dec 15 21:12:03 2018 +0000
@@ -3,13 +3,17 @@
 DigitalOut gpo(D0);
 DigitalOut led(LED_RED);
 DigitalOut led2(LED_GREEN);
+//DigitalOut led3(LED_BLUE);
 
 int main()
 {
     while (true) {
         gpo = !gpo; // toggle pin
         led = !led; // toggle led
+        gpo = !gpo;
         led2 = !led2;
+  //      gpo = !gpo;
+  //      led3 = !led3;
         wait(0.5f);
     }
 }
\ No newline at end of file