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:
- 6:14523b016fd5
- Parent:
- 5:45bfe4a9d0a0
- Child:
- 7:f313fb383b37
--- a/main.cpp Wed Apr 22 22:36:35 2020 +0000 +++ b/main.cpp Wed Apr 22 23:27:19 2020 +0000 @@ -3,17 +3,16 @@ Serial com1(USBTX, USBRX); -DigitalIn enable(PTA6); +DigitalIn bot(PTA6); int main() - { { while(1) { - if(enable.read()== 0) + if(bot.read()== 0) { com1.printf("El boton esta siendo presionado"); @@ -24,7 +23,7 @@ com1.printf("El boton esta no esta siendo presionado" ); } - } + } }