Matrix Keyboard controlling LinuxCNC
Please Log in or Create an account to join the conversation.
On panming's schematic, the "column pins" are the VCC outputs, so did you just treat the rows as columns?If your Keyboard shares pins with the LEDs, you have to check polarity. The Matrix Keyboard uses Pins as such:rowPins[numRows] = {} are Pullup Inputs colPins[numCols] = {} are GND Pinsthe matrix keyboard described in the thread shares GND Pins between LEDs and KEYs, therefore LedGndPins[] and colPins[numCols] = {} use same Pins, LedVccPins[] are Outputs and drive the LEDs.
Looking to make my own keypanel using this firmware, judging by the wording in the git I assume it should work with this?:
Attachments:
Please Log in or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
- Posts: 86
- Thank you received: 67
Yes I think you can use the Firmware with this Keypanel.
You made me aware that I forgot to update the Documentation after I updated the Code to hopefully make it less confusing.
#ifdef MULTIPLEXLEDS
const int numVccPins = 8; // Number of rows in the matrix
const int numGndPins = 8; // Number of columns in the matrix
const int LedVccPins[] = {30,31,32,33,34,35,36,37};
const int LedGndPins[] = {40,41,42,43,44,45,46,47};
Let me know If you have Issues, so I can improve the Firmware for you.
Please Log in or Create an account to join the conversation.
I'm making the key panel myself, it's my schematic so I'm trying to make it the way this Arduino firmware was intended to be used. Does this look like what you had in mind?
Please Log in or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
- Posts: 86
- Thank you received: 67
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- kofsky0328
- Offline
- Junior Member
- Posts: 20
- Thank you received: 0
Please Log in or Create an account to join the conversation.