Ezequiel Brizzio / Mbed OS mbed6_blinky_led

Files at this revision

API Documentation at this revision

Comitter:
ezebrizzio
Date:
Wed Aug 12 00:06:36 2020 -0300
Parent:
1:04792423a4a0
Commit message:
agrega unos printf

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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){