#lily58 pro - how to add support for encoder on the right (slave) side

1 messages · Page 1 of 1 (latest)

valid kayak
#

Hello everyone, I'm very very fresh in zmk. I just changed my lily58 pro from a wired configuration to nice!nanos and zmk.
I have an encoder on the right side (slave) and I'd like to get it to work.
I've checked with chatgpt and it tells me to create a shield devicetree overlay (which i guess is in line with the documentation). What is exactly this file? Do i add it to inside zmk-config/config/boards/shields? or should i create it inside zmk-config/boards/shields ?
Shall I copy a previously existing file from the zmk repo as a starting point and add stuff there? Sorry i'm a bit confused with this github actions stuff not sure if whenever i create a file if it replaces the other one or just appends to it?

Thanks for your help!

valid kayak
#

I think I figured it out, I'll add my repo here tomorrow in case anyone has the same issue

valid kayak
primal linden
#

What was the original issue?
What did you change and how does it work now?

Looking at your repository, I see there's boards/shields/lily58/lily58.dtsi. That file is not being included and used anywhere.

#

Asking ChatGPT (and every other LLM) about ZMK is generally a bad idea, as they will lead you down a wrong path and make you more confused.
They are not trained with enough data about zephyr/zmk and hallucinate most of their output.

#

If you want an even clearer proof, add some random text (like AAAAAAAAA) in boards/shields/lily58/lily58.dtsi. If that file is used by the build process, it should fail to build.

#

Looking at lily58 in the main zmk repository, there's only one shared encoder defined for both sides. I'm not sure why it's done this way, I'm guessing maybe lily58 predates split encoder support in zmk?

tulip glade
#

Probably, yes

valid kayak
#

oh wow just seen this, somehow it works. maybe it always worked and the label for left/right encoder doesnt really matter.