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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 4:2054aa78f3fd
- Parent:
- 3:fb15a9d24ccf
- Child:
- 5:0d73e455922a
--- a/main.cpp Mon May 04 13:31:18 2020 +0000 +++ b/main.cpp Mon May 04 13:37:55 2020 +0000 @@ -10,14 +10,12 @@ char pas=1; bool sens=0; +bool F; unsigned int compteur=0; char message[30]; Ticker mon_IT; // on associe l'interface Timeout à l'objet mon_IT void Interruption_timer() { - printf("coucou\n"); - led1=!led1; - if(sens==0) { pas++; @@ -32,6 +30,7 @@ } if(compteur<=0){ PWMA_ClrVal(); + F=1; } switch (pas) { @@ -95,7 +94,9 @@ while(1) { for(;;){ + if (F==1) { + Term1_SendStr("Fin de course"); Term1_CRLF(); F=0;