![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
projet cabanis golf 2022
Dependencies: mbed HX711 TextLCD
Diff: main.cpp
- Revision:
- 2:a7f75462252d
- Parent:
- 1:f6e3e0f785cd
- Child:
- 3:e3f90a2684c1
--- a/main.cpp Tue May 31 07:11:11 2022 +0000 +++ b/main.cpp Mon Jun 13 13:38:26 2022 +0000 @@ -30,7 +30,7 @@ DigitalIn Right(p15); DigitalIn Center(p16); -AnalogIn scaleRaw(A3); +//AnalogIn scaleRaw(A3); Serial pc(USBTX, USBRX); // USB Serial Terminal float calibration_factor1 = 2325; //2325 // -7050 worked for my 440lb max scale setup float calibration_factor2 = 2178; //2178 @@ -40,7 +40,6 @@ int boucleExecute = 0; int i = 0; //count -int ii = 0; //count float m = 0; //MASSE float lg = 0; //LG @@ -184,7 +183,7 @@ wait(0.5); // Attendre 0.5 sec } else if (!Up) { - i = 3; + i = 4; //CODE: LED_BOUTON_A ledB1 = 1; ledB2 = 0; @@ -371,7 +370,7 @@ } } break; - } +}// FIN SWITCH /* CODE INFORMATION: LED_BOUTON_A: Mettre la LED bicolore en ROUGE pour que l'utilisateur sache que son action a était pris en compte @@ -392,5 +391,5 @@ } gpo = !gpo; // toggle pin wait(0.2); // Attendre 0.2 sec - } -} \ No newline at end of file + }// FIN WHILE +}// FIN MAIN \ No newline at end of file