diff --git a/braille_xr.ino b/braille_xr.ino index d9e1ddd..da5fa1d 100644 --- a/braille_xr.ino +++ b/braille_xr.ino @@ -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); } } \ No newline at end of file