Gustavo Vargas Melo / Mbed 2 deprecated BotonFinal

Dependencies:   mbed FXOS8700Q

main.cpp

Committer:
akumagame
Date:
2020-04-22
Revision:
6:14523b016fd5
Parent:
5:45bfe4a9d0a0
Child:
7:f313fb383b37

File content as of revision 6:14523b016fd5:

#include "mbed.h"


Serial com1(USBTX, USBRX);

DigitalIn bot(PTA6);
 
 
 int main()
 
  {
     while(1)
     
     {
     if(bot.read()== 0)
     {
        com1.printf("El boton esta siendo presionado");
    
         }
         
         else
         {
        com1.printf("El boton esta no esta siendo presionado" );
        
             }
            
     }
  
  }