From 0860b568af5537eb6aadcc40794971b48c937215 Mon Sep 17 00:00:00 2001 From: spatialfree Date: Tue, 2 Apr 2024 14:53:36 -0400 Subject: [PATCH] refresh on new char --- firmware/braille_xr/braille_xr.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/braille_xr/braille_xr.ino b/firmware/braille_xr/braille_xr.ino index c20e6e6..e79b558 100644 --- a/firmware/braille_xr/braille_xr.ino +++ b/firmware/braille_xr/braille_xr.ino @@ -234,12 +234,12 @@ void setup() { } } +char old_char = ' '; void loop() { // delay(1000); // udp.broadcast("Anyone here?"); - // myservo.write(bindex); - for (int i = 0; i < 6; i++) { - servos[i].servo.write(brailleMap[in_char].servoStates[i] * 180); + if (in_char != old_char) { + old_char = in_char; } } \ No newline at end of file