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:
- 4:87dc862ec3aa
- Parent:
- 3:32058377a827
- Child:
- 5:45bfe4a9d0a0
--- a/main.cpp Mon Apr 13 23:34:58 2020 +0000 +++ b/main.cpp Wed Apr 15 23:23:09 2020 +0000 @@ -3,11 +3,14 @@ Serial com1(USBTX, USBRX); -DigitalIn enable(PTA4); +DigitalIn enable(PTA6); void bot(int b) { - if(enable.read() == 1) + while(1) + + { + if(enable.read()== 0) { com1.printf("El boton esta siendo presionado"); @@ -18,7 +21,7 @@ com1.printf("El boton esta no esta siendo presionado" ); } - + } } int main()