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:
- 7:f9a7d4c88daa
- Parent:
- 6:9194379d2fdc
- Child:
- 8:bef8456b1b31
diff -r 9194379d2fdc -r f9a7d4c88daa main.cpp --- a/main.cpp Mon May 04 14:45:02 2020 +0000 +++ b/main.cpp Mon May 04 15:00:29 2020 +0000 @@ -31,7 +31,8 @@ printf("La valeur de o est de : %d \n", o); pwma=0; printf("Le nombre de pas est de : %d \n", compteur); - + } + void Interruption_timer() { if(sens==0) { @@ -109,7 +110,7 @@ mon_IT.attach(&Interruption_timer,0.5); // l'interruption est associée au programme Interruption_timer et s'exécute toutes les 0.5s // pour stopper mon_IT.detach(); sw3.rise(&Interruption_KBI1); - sw3.rise(&Interruption_KBI2); + sw2.rise(&Interruption_KBI2); while(1) { for(;;){