Gustavo Vargas Melo / Mbed 2 deprecated BotonFinal

Dependencies:   mbed FXOS8700Q

Revision:
5:45bfe4a9d0a0
Parent:
4:87dc862ec3aa
Child:
6:14523b016fd5
--- a/main.cpp	Wed Apr 15 23:23:09 2020 +0000
+++ b/main.cpp	Wed Apr 22 22:36:35 2020 +0000
@@ -4,9 +4,12 @@
 Serial com1(USBTX, USBRX);
 
 DigitalIn enable(PTA6);
-  
- void bot(int b) 
+ 
+ 
+ int main()
  {
+ 
+  {
      while(1)
      
      {
@@ -23,11 +26,6 @@
              }
       }      
      }
- 
- int main()
- {
- 
-  com1.printf("%i",bot);
   
   }