mirror of
https://github.com/smartykit/apple1.git
synced 2024-12-26 21:32:13 +00:00
Update SmartyKitApple1_KeyboardDriver.ino
Updated delay time to prevent repeating of keyboard input chars
This commit is contained in:
parent
825c37505a
commit
4410f028e3
@ -56,7 +56,7 @@ void loop() {
|
||||
|
||||
// read the next key
|
||||
char c = keyboard.read();
|
||||
|
||||
/*
|
||||
// check for some of the special keys
|
||||
if (c == PS2_ENTER) {
|
||||
Serial.println();
|
||||
@ -83,7 +83,18 @@ void loop() {
|
||||
// otherwise, just print all normal characters
|
||||
Serial.print(c);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
//process Backspace, Left Arrow, Delete as Apple I backspace '_'
|
||||
if (c == PS2_BACKSPACE) {
|
||||
c = '_';
|
||||
} else if (c == PS2_LEFTARROW) {
|
||||
c = '_';
|
||||
} else if (c == PS2_DELETE) {
|
||||
c = '_';
|
||||
}
|
||||
|
||||
//print c to register
|
||||
for (int count = 1; count <= 8 ; count++)
|
||||
{
|
||||
@ -94,6 +105,6 @@ void loop() {
|
||||
}
|
||||
digitalWrite(DataBus[7], HIGH);
|
||||
KBDCR_Enable();
|
||||
delay(20);
|
||||
delay(4);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user