Cielo Benítez / Mbed 2 deprecated prac4_ejer7

Dependencies:   mbed

main.cpp

Committer:
cielo
Date:
2020-04-12
Revision:
26:5076b996d5a9
Parent:
25:7dad1f41744f

File content as of revision 26:5076b996d5a9:

#include "mbed.h"
DigitalOut led(LED2);
DigitalIn push1(SW2);
DigitalIn push2(SW3);
Serial com1(USBTX,USBRX); // PARA USAR LOS PINES UART
int main()
{
      
         while(push1==1 || push2==1){
             led=1;
            com1.printf("El led esta encendido \n");
                }
        
        
        }