mappings
This commit is contained in:
parent
629e905914
commit
93ccd8e77f
1 changed files with 5 additions and 5 deletions
|
@ -10,11 +10,11 @@ struct ServoPin {
|
|||
Servo servo;
|
||||
int pin;
|
||||
};
|
||||
// Recommended PWM GPIO pins on the ESP32 include 2,4,12-19,21-23,25-27,32-33
|
||||
|
||||
ServoPin servos[6] = {
|
||||
{Servo(), 4 }, {Servo(), 16},
|
||||
{Servo(), 17}, {Servo(), 5 },
|
||||
{Servo(), 18}, {Servo(), 19}
|
||||
{Servo(), 2 }, {Servo(), 4 },
|
||||
{Servo(), 5 }, {Servo(), 18},
|
||||
{Servo(), 19}, {Servo(), 21} // 19 and 21 are untested
|
||||
};
|
||||
|
||||
// braille alphabet
|
||||
|
@ -202,6 +202,6 @@ void loop()
|
|||
|
||||
// myservo.write(bindex);
|
||||
for (int i = 0; i < 6; i++) {
|
||||
servos[i].servo.write(bindex);
|
||||
servos[i].servo.write(brailleAlphabet[bindex].servoStates[i] * 180);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue