Open mynameiswutong opened 4 days ago
This is usually a symptom of your steps/triggers-per-rotation set incorrectly. You should find those values from the datasheet of your encoder.
If you can't, you can count triggers-per-rotation
by counting how many detents you have per a full rotation. steps
will usually be 2x or 4x the value of triggers-per-rotation
, which you can try to figure out via trial and error.
Thank you very much for your help. I set triggers-per-rotation
to the number of detent
(30) of the rotary encoder, steps
to 60, and then compiled it; But when I rotate my encoder, there is no output. Here is my log, please help me check again where the problem is. Thank you!
I am not sure the exact relation between data sheet numbers on detents and pulses vs. steps/triggers, I think detents should be triggers at least. The repo has a couple keyboards with triggers-per-rotation = <30>;
and steps = <120>;
, might be worth trying?
Thanks for your suggestion, I made the changes as you suggested but when I rotate the encoder it does not give any output
I created a new
arm
andshields
and placed them in the folder corresponding tozmk \ app \ boards
, then compiled them. However, I found that the encoder was not working properly. No matter how I rotated it, the encoder alternately triggered[CW_KEY]
and[CW_KEY]
. That is to say, if[CW_KEY]
was triggered during the first rotation, the next one must be[CCW_KEY]
; Has anyone encountered a similar situation before? Please help me, thank you very much!This is the complete code file :code.zip
This is the log information I received:
Here are my and
JansnRF52.overlay
file:Here are my and
JansnRF52.keymap
file: