Hi,
check out this Code:
github.com/AlexmagToast/LinuxCNC_Arduino...or/tree/keyboard_dev
I've added a function to drive multiplexed LEDs. I think it might work.
Around line 286 there are two settings:
const int LedVccPins[] = {0,1,2,3,4,5,6,7};
const int LedGndPins[] = {8,9,10,11,12,13,14};
The numbers correspond to the OUT pins on your drawing. please change them to how you connect the keyboard to the arduino.
I've implemented the python part also, but never tested it. Might work, but propably not
I guess it makes sence to test the arduino first.
To test could you please wire the arduino up with the keyboard,
connect it to ArduinoIDE and open Serial Monitor.
Send E0:0
After that by sending M0:1 the first LED should turn on.
Each LED is identified by a number, from 0- (rows*columns in your case 55).
You can adress it with the number behind M. The number behind : defines the State. So M5:1 turns on LED the 6. Led in the matrix.
M5:0 should turn it off.
If this works you can try if by chance the python part works too.
i am curious about your Results.
-Alex