Thanks so much for this project! I'm planning to incorporate it into a larger board for the Lisa that breaks out floppy and power functions.
It's working pretty well so far, except the T and Y keys seem swapped? I've attempted to change the code but I'm not sure which places to change.
Also, is it normal in the keyboard test mode for some keys to not have a key pressed event? In this example, the A key doesn't register a press, only a release.
Keyboard Test Mode
Macintosh keyboard detected: M0110A (0xB)
Macintosh key released: A
Macintosh key released: A
Macintosh key released: A
Macintosh key released: A
Macintosh key pressed: B
Macintosh key released: B
Macintosh key pressed: B
Macintosh key released: B
Macintosh key released: A
Macintosh key released: A
There also seems to be phantom keys on some NumPad keys? In this example, I'm pressing and releasing Clear, =, /, and * but it registers releases of Down and Shift as well.
Macintosh key pressed: NumPad Clear
Macintosh key released: NumPad Clear
Macintosh key pressed: NumPad =
Macintosh key released: Down
Macintosh key released: NumPad =
Macintosh key released: Shift
Macintosh key pressed: NumPad /
Macintosh key released: Up
Macintosh key released: NumPad /
Macintosh key released: Shift
Macintosh key pressed: NumPad *
Macintosh key released: Right
Macintosh key released: NumPad *
Macintosh key released: Shift
Thanks!