Gustavo Vargas Melo / Mbed 2 deprecated BotonFinal

Dependencies:   mbed FXOS8700Q

Revision:
0:fe1cbc83cf4c
Child:
1:f01d67bcb993
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Apr 11 22:46:54 2020 +0000
@@ -0,0 +1,31 @@
+#include "mbed.h"
+
+
+Serial com1(USBTX, USBRX);
+
+DigitalIn enable(PTC6);
+  
+ void bot(int b) 
+ {
+     if(enable == 1)
+     {
+        com1.printf("El boton esta siendo presionado");
+    
+         }
+         
+         else
+         {
+        com1.printf("El boton esta no esta siendo presionado" );
+        
+             }
+            
+     }
+ 
+ int main()
+ {
+ 
+  com1.printf("%i",bot);
+  
+  }
+    
+