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:
- omarem
- Date:
- 2020-04-12
- Revision:
- 0:313f7b0a1e16
File content as of revision 0:313f7b0a1e16:
#include "mbed.h"
Serial com1(USBTX, USBRX);
void Boton(int Si, int No)
{
int pulsado;
pulsado = Si;
com1.printf("El boton esta pulsado \n", pulsado);
int sinpulsar;
sinpulsar = No;
com1.printf("El boton no esta pulsado \n", sinpulsar);
}
int main ()
{
int e1,e2;
e1 = 0;
e2 = !e1;
Boton(e1,e2);
}