libreria para boton

Fork of libreriaparaboton by gilberto gomez

Revision:
1:0e87be347df3
Parent:
0:aa1593c7fe2b
--- a/gomez.h	Wed Feb 17 14:10:09 2016 +0000
+++ b/gomez.h	Wed Feb 17 17:19:53 2016 +0000
@@ -2,19 +2,16 @@
 #define GILBERTO
 #include "mbed.h"
 
-DigitalIn Botondeentrada(D2);
-DigitalOut Led(LED2);
+
+
 void gilberto_mensaje(){
+
+    salida2=1;
+    wait(.5);
+    salida2=0;
+    wait(.5);
     }
-int main() {
-    while(1){
-    if(Botondeentrada==1){
-        Led=0;
-        }else{
-        Led=1;
-    }
-}
-}
+
 
 
 #endif