From b77765a6c3c683e57fc13bd4a874ea00fcecf2ca Mon Sep 17 00:00:00 2001 From: Charles Mangin Date: Thu, 25 Jul 2013 22:16:09 -0400 Subject: [PATCH] rolled back capslock code. --- IIe-USB/arduino/IIe_keyboard/IIe_keyboard.ino | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/IIe-USB/arduino/IIe_keyboard/IIe_keyboard.ino b/IIe-USB/arduino/IIe_keyboard/IIe_keyboard.ino index 55588ac..ff0f44b 100644 --- a/IIe-USB/arduino/IIe_keyboard/IIe_keyboard.ino +++ b/IIe-USB/arduino/IIe_keyboard/IIe_keyboard.ino @@ -157,17 +157,7 @@ void loop() { //probably should be on an interrupt, to catch high->low transition - CAPSState = digitalRead(CAPSPin); - if ((int(keyboard_leds) & 2) == CAPSState) { - if (CAPSState == HIGH) { - Keyboard.set_key6(KEY_CAPS_UNLOCK); - } - else { - Keyboard.set_key6(KEY_CAPS_LOCK); - } - } - - /* // Only do something if the pin is different from previous state. + // Only do something if the pin is different from previous state. if ( (CAPSState!=digitalRead(CAPSPin)) && !resetCapsLock) { CAPSState = digitalRead(CAPSPin); // Remember new CAPSState. Keyboard.set_key6(KEY_CAPS_LOCK); // Send KEY_CAPS_LOCK. @@ -177,7 +167,7 @@ void loop() if ( resetCapsLock && (millis()-dTime) > 10) { Keyboard.set_key6(KEY_CAPS_UNLOCK); resetCapsLock = false; - } */ + } /*char CAPSState = digitalRead(CAPSPin); if (CAPSState == LOW) {