mirror of
https://github.com/option8/RetroConnector.git
synced 2025-01-01 10:31:02 +00:00
pin 23 errata. caps lock fix rolled back.
This commit is contained in:
parent
b77765a6c3
commit
eac1b7e6af
@ -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) {
|
||||
|
BIN
IIc-USB/PCB/rev3 errata/23-25.jpg
Normal file
BIN
IIc-USB/PCB/rev3 errata/23-25.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 402 KiB |
BIN
IIc-USB/PCB/rev3 errata/errata.odt
Normal file
BIN
IIc-USB/PCB/rev3 errata/errata.odt
Normal file
Binary file not shown.
BIN
IIc-USB/PCB/rev3 errata/errata.pdf
Normal file
BIN
IIc-USB/PCB/rev3 errata/errata.pdf
Normal file
Binary file not shown.
BIN
IIc-USB/PCB/rev3 errata/pin23.jpg
Normal file
BIN
IIc-USB/PCB/rev3 errata/pin23.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 202 KiB |
@ -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 }
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
@ -151,6 +157,7 @@ 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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user