libreria para boton

Fork of libreriaparaboton by gilberto gomez

Revision:
0:aa1593c7fe2b
Child:
1:0e87be347df3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gomez.h	Wed Feb 17 14:10:09 2016 +0000
@@ -0,0 +1,20 @@
+#ifndef GILBERTO  
+#define GILBERTO
+#include "mbed.h"
+
+DigitalIn Botondeentrada(D2);
+DigitalOut Led(LED2);
+void gilberto_mensaje(){
+    }
+int main() {
+    while(1){
+    if(Botondeentrada==1){
+        Led=0;
+        }else{
+        Led=1;
+    }
+}
+}
+
+
+#endif