Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- isaacross99
- Date:
- 2019-10-16
- Revision:
- 29:734b61eca6df
- Parent:
- 28:868b283c5f77
- Child:
- 30:f7518060fc89
File content as of revision 29:734b61eca6df:
#include "mbed.h"
DigitalOut red(LED1);
Serial pc(USBTX,USBRX);
DigitalIn boton1(PTC6);
DigitalIn boton2(PTA4);
int main(){
red=0;
while(1){
/*while(boton1 || boton2){
red = 1;
pc.printf("\nEstas presionando el boton :o");
}
red=0;*/
////////////////////////////////////////////////////////////////////
if(!boton1 || !boton2){
red =1 ;
pc.printf("\nEstas presionando el boton :o");
}
else{
red=0;
}
}
}