Exercice 2 - Etude de la machine à états

Dependencies:   mbed tsi_sensor

Revision:
1:d77bf371f544
Parent:
0:6608f0b5205c
--- a/main.cpp	Sun Oct 28 16:20:55 2018 +0000
+++ b/main.cpp	Sat Dec 19 11:44:15 2020 +0000
@@ -10,6 +10,7 @@
     float val;
     while (1) {
         val=lire_slider();
+        printf("etat=%d -- slider=%f \n\r",etat,val);
         switch(etat) {
             case 0 :
                 if(val>0 && val <0.2) etat=1;