diff --git a/.DS_Store b/.DS_Store index 626f6b6..0ee0d57 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/IIc-USB/Arduino/IIc_keyboard/IIc_keyboard.ino b/IIc-USB/Arduino/IIc_keyboard/IIc_keyboard.ino index c7def36..201f675 100644 --- a/IIc-USB/Arduino/IIc_keyboard/IIc_keyboard.ino +++ b/IIc-USB/Arduino/IIc_keyboard/IIc_keyboard.ino @@ -127,7 +127,7 @@ J9 pinout 20 Y3 21 GROUND ??? 22 X2 -23 5V +23 GROUND ??? 24 X1 25 POWER LED (5v) 26 OPEN APPLE @@ -210,17 +210,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. @@ -230,7 +220,7 @@ void loop() if ( resetCapsLock && (millis()-dTime) > 10) { Keyboard.set_key6(KEY_CAPS_UNLOCK); resetCapsLock = false; - } */ + } /*char CAPSState = digitalRead(CAPSPin); if (CAPSState == LOW) { diff --git a/IIc-USB/PCB/rev3 errata/23-25.jpg b/IIc-USB/PCB/rev3 errata/23-25.jpg new file mode 100644 index 0000000..8f8a8f7 Binary files /dev/null and b/IIc-USB/PCB/rev3 errata/23-25.jpg differ diff --git a/IIc-USB/PCB/rev3 errata/errata.odt b/IIc-USB/PCB/rev3 errata/errata.odt new file mode 100644 index 0000000..af3b8da Binary files /dev/null and b/IIc-USB/PCB/rev3 errata/errata.odt differ diff --git a/IIc-USB/PCB/rev3 errata/errata.pdf b/IIc-USB/PCB/rev3 errata/errata.pdf new file mode 100644 index 0000000..90be4f5 Binary files /dev/null and b/IIc-USB/PCB/rev3 errata/errata.pdf differ diff --git a/IIc-USB/PCB/rev3 errata/pin23.jpg b/IIc-USB/PCB/rev3 errata/pin23.jpg new file mode 100644 index 0000000..681ecbd Binary files /dev/null and b/IIc-USB/PCB/rev3 errata/pin23.jpg differ diff --git a/IIe-USB/arduino/IIe_keyboard/IIe_keyboard.ino b/IIe-USB/arduino/IIe_keyboard/IIe_keyboard.ino index ff0f44b..7db30f8 100644 --- a/IIe-USB/arduino/IIe_keyboard/IIe_keyboard.ino +++ b/IIe-USB/arduino/IIe_keyboard/IIe_keyboard.ino @@ -46,6 +46,12 @@ char keys[ROWS][COLS] = { }; +char Fkeys[2][10] = { + {KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_0 }, + {KEY_F1, KEY_F2, KEY_F3, KEY_F4, KEY_F5, KEY_F6, KEY_F7, KEY_F8, KEY_F9, KEY_F10 } +}; + + /* @@ -142,15 +148,16 @@ void setup(){ pinMode(APPLEPin1, INPUT); pinMode(APPLEPin2, INPUT); -digitalWrite(APPLEPin1, LOW); -digitalWrite(APPLEPin2, LOW); + digitalWrite(APPLEPin1, LOW); + digitalWrite(APPLEPin2, LOW); -digitalWrite(SHIFTPin, HIGH); -digitalWrite(CTRLPin, HIGH); + digitalWrite(SHIFTPin, HIGH); + digitalWrite(CTRLPin, HIGH); pinMode(CAPSPin, INPUT); digitalWrite(CAPSPin, HIGH); - + + } void loop() @@ -274,6 +281,7 @@ void loop() //if( KPD.key[5].kchar && ( KPD.key[5].kstate==PRESSED || KPD.key[5].kstate==HOLD )) // Keyboard.set_key6( KPD.key[5].kchar ); + Keyboard.send_now(); Keyboard.set_modifier(0);