Arduino Leonardo, Serial speed 19200.
I'm doing a custom keyboard, which simulates 11 keys press. Currently I have 8 keys wired and use pin 3 to 10 to receive input (pinMode INPUT).
The Screenshot shows how I connect to one of the keys. And all other keys have the exact same connection.
Power is provided by USB itself, it connects to computer.
All LEDs are 5V but with different color, these 8 keys I'm testing now are 4 yellow, and 4 blue.
All connected resistors are all 2000 Ohm.
All Buttons are microswitches.
I assigned key 1 to 7 with "s d f h j k l" characters, and key 8 is shift. Whey a key is pressed, the program will call Keyboard.press(), and when its released, then it will call Keyboard.release(). I've already dealt with the button bounce issue.
Now the issue is, I can't press all keys simultaneously. I'm trying to hit first 7 keys together, and hope in keyboard rollover tester, all 7 keys should be pressed down. But it turns out, that the last key I press down won't be detected, regardless which key I press last. For example, I press "s d f j k l" 6 chars together down, and all 6 are pressed in keyboard tester, but when I press down the 7th key "h", it won't detect, until I release one. However, all LEDs lit fine when key is pressed, regardless of the windows receives the key press or not.
But shift ( key 8 ) works differently, when I press shift after 6 chars are pressed down, shift won't trigger. But When I hold shift as one of the first 6 buttons holds down, I can press one more button, and now 7 keys are pressed down simultaneously with shift.
I thought it's some limitation on Keyboard function, but it also could be something to do with the board. Can anyone help me?