Digitales II / Mbed 2 deprecated gusanito

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
lina94
Date:
Thu Jun 26 02:12:57 2014 +0000
Parent:
0:1644c3e66842
Commit message:
prueba 2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jun 26 02:00:32 2014 +0000
+++ b/main.cpp	Thu Jun 26 02:12:57 2014 +0000
@@ -40,19 +40,16 @@
 void conteo ()
 {
         unidades++;
-        decenas++;
+        
         if (unidades > 32)
         {
     unidades = 0;
     }
-    if (decenas > 32) {
-        decenas = 0;
-        }
-    }
+    
 
 void prueba_led()
 {
-    Testigo2 = !Testigo2;
+    Testigo2 = 0;
     }
 
 int main(void)
@@ -62,13 +59,12 @@
 visualiza.attach(&cambio,0.008333); // tiempo de visualizacion
 cuenta.attach(&conteo,1); // tiempo de incremento de la variable
 Led_Test.attach(&prueba_led,1.7);
-Testigo1 = 1;
-Testigo2 = 1;
+Testigo1 = 0;
+Testigo2 = 0;
     while(1)
     {
         
-        Testigo1 = !Testigo1;                   
-        wait(0.5);
+        Testigo1 = 0;                  
         
     }
 }
\ No newline at end of file