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.
Diff: main.cpp
- Revision:
- 0:fe1cbc83cf4c
- Child:
- 1:f01d67bcb993
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Apr 11 22:46:54 2020 +0000 @@ -0,0 +1,31 @@ +#include "mbed.h" + + +Serial com1(USBTX, USBRX); + +DigitalIn enable(PTC6); + + void bot(int b) + { + if(enable == 1) + { + com1.printf("El boton esta siendo presionado"); + + } + + else + { + com1.printf("El boton esta no esta siendo presionado" ); + + } + + } + + int main() + { + + com1.printf("%i",bot); + + } + +