add switch read

This commit is contained in:
Florent
2026-03-11 18:29:42 +01:00
parent 5f36968eaa
commit acadb47837
4 changed files with 14 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ struct Step {
// Servo Moteur
#define SERVO_PIN 15
#define EMG_PIN 5
// Bouton de sélection de côté
#define SWITCH_PIN 14
#endif

View File

@@ -9,4 +9,6 @@ int getStepsForDistance(float cm);
int getRotationSteps(float angleDeg);
int readSwitchOnce(int pin);
#endif // PAMI_UTILS_H