Ezequiel Brizzio / Mbed OS mbed6_blinky_led
Revision:
2:e593110be031
Parent:
1:04792423a4a0
diff -r 04792423a4a0 -r e593110be031 main.cpp
--- a/main.cpp	Tue Aug 11 23:56:47 2020 -0300
+++ b/main.cpp	Wed Aug 12 00:06:36 2020 -0300
@@ -41,7 +41,7 @@
                 C = 0;
                 //transicion
                 estado = ENCENDIDO;
-        
+                printf("S1::APAGADO -> S2::ENCENDIDO\r\n");
             }        
             break;
             
@@ -54,7 +54,7 @@
                 C = 0;
                 //transicion
                 estado = APAGADO;
-        
+                printf("S2::ENCENDIDO -> S1::APAGADO\r\n");
             }        
             break;
     }
@@ -62,7 +62,7 @@
 
 int main() {
     //Inicializaciones
-    nombre_del_ticker.attach(&funcion, 100ms);
+    nombre_del_ticker.attach(&funcion, 1s);
     
     //lazo o loop infinito
     while(1){