First time programming a stm 32 - key matrix
Hello all!
I'm in the process of designing my first full custom sim racing steering wheel. I have designed and ordered a pcb with a stm32f103cbt6 mcu. The pcb works good (so far) and i have it connected to my pc via a swd clone st link debugger.
I am using stm32cubeid to program the pcb and so far everything works. I have configured the basic such as the clock and usb as virtual com port. Now i need to program the rest of the pcb.
The pcb got 14 push buttons and 4 rotary encoders with push button function. So 16 push functions in total. I used the multiplex technology with 4 rows and 4 cols. In stm32cubeide i have set the pins where the rows and cols are connected to gpio_input and generated the code. But my programming skills are not the best, it is not 0, but c scripting i have not done much before.
Can somebody help on the right pad or link me some good tutorials? I get a lot push button to light up led's, but that is not quite what i want. The purpose is to get a push button input mapped into racing games.
