mirror of
https://github.com/modelec/pami.git
synced 2026-03-18 21:40:35 +01:00
add switch read
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -9,4 +9,6 @@ int getStepsForDistance(float cm);
|
||||
|
||||
int getRotationSteps(float angleDeg);
|
||||
|
||||
int readSwitchOnce(int pin);
|
||||
|
||||
#endif // PAMI_UTILS_H
|
||||
|
||||
Reference in New Issue
Block a user