Hi everyone,
I've been lurking around this forum and r/mk for a while now looking at how everyone has been making there keyboards and figured I'd learn what goes into making one myself by creating a schematic for a keyboard layout myself. Just for background, I have experience creating schematics and have experience in electronics, but my experience in microcontrollers is limited to doing basic things on an Arduino board.
I was able to create the keyboard matrix without any issues since that was simple enough.
.
What I'm having trouble with is the microcontroller part of the whole system. I pieced together part of the circuit where the 32u4 connects to the USB port and all the caps/resistors/fuses etc. I believe I laid that part out correctly, but feel free to point out any mistakes I may have made. The part I can't figure out is how you determine which row and column gets assigned to each pin. Am I correct in assuming that you just assign each pin however you want and then code in the corresponding pin to row/column designation? Or is there something more involved in it than that?
The main purpose of me doing this is just to learn and really nothing else at this time, since I know there are plenty of other premade options out there that are doing the same thing that I'm trying to achieve here. I tried to search through and make sense of a bunch of schematics but I pretty much hit a dead end with the pin assignments on the matrix part of the circuit and I'm not really sure what to search for in the forum either so any help would be appreciated.
Thanks in advance!