Hi there! I made a custom 81 key tenkeyless mechanical keeb ,and it has 3 EC11 rotary encoders, but I am not able to make them work. They are clickable, so I connected their switch pins to the matrix (7x12), and the individual A and B pins to the MCU.
My keyboard uses a regular rp2040, and I am testing the keyboard in Arch Linux (dwm).
I followed the encoders page of the official qmk docs: https://docs.qmk.fm/features/encoders,
but qmk configurator(https://config.qmk.fm/#/test/) does not seem to detect anything when I rotate the encoders.
Just to be sure, I also tested it using xorg-xev, but nope, that doesn't help either.
Along with this issue, I am not able to use CL_SWAP keycode properly, I used it in layer 1 as you can see in the attached file, but it only works once. What I mean is, it only swaps the keys once and never brings then back to their original position once repressed. Fixed thanks to @late hazel
I am not able to figure out what the potential cause can be, I appreciate any help regarding this!
Other details which may be relavant:
QMK version: .1.2.0
Github repository: https://github.com/ShibamRoy9826/RoyBoard (may not be uptodate, I have to push a lot of changes)
ENCODER_ENABLE = yes
ENCODER_MAP_ENABLE = yes
config.h
#define ENCODER_A_PINS { GP17,GP21,GP19}
#define ENCODER_B_PINS { GP16,GP20,GP18}
#define ENCODER_RESOLUTION 4
#define BOOTMAGIC_ROW 0
#define BOOTMAGIC_COLUMN 0
keyboard.json (attached)
keymap.c(attached)