refresh on new char

This commit is contained in:
ethan merchant 2024-04-02 14:53:36 -04:00
parent 41661cd05d
commit 0860b568af

View file

@ -234,12 +234,12 @@ void setup() {
} }
} }
char old_char = ' ';
void loop() { void loop() {
// delay(1000); // delay(1000);
// udp.broadcast("Anyone here?"); // udp.broadcast("Anyone here?");
// myservo.write(bindex); if (in_char != old_char) {
for (int i = 0; i < 6; i++) { old_char = in_char;
servos[i].servo.write(brailleMap[in_char].servoStates[i] * 180);
} }
} }