I am making a keyboard using a Raspberry Pi Pico W as the microcontroller and a 6 row, 17 column matrix. I'm having a problem integrating the KY-040 Rotary encoder in it though. I know how to use just the encoder part, but not the pushbutton.
The issue is that the pushbutton shorts SW to GND when pressed (iirc), so I can't use it in my matrix. I think a solution could be using a GPIO pin just for the pushbutton and not connected to the matrix, but I don't know how to, or even if I can configure that in QMK.
If I can't, or the configuration is difficult, I am open to using another rotary encoder with a pushbutton I can wire into my matrix .