05-17-2021, 08:22 PM
(This post was last modified: 05-18-2021, 04:49 AM by Daniel_BlueWave.)
I have connected a KY-040 rotary encoder to my RPI4 with the latest OAP 13.1 (also tried with v13 before the update). The rotary works fine (volume up and down) but the switch does nothing at all when pressed. With any key binding I assign to it in the config. I also tried to change the Dupont cable, tried with another rotary encoder, tried to switch to a different GPIO pin (first GPIO 13, then GPIO 26, nothing works.
I connected the encoder acording to this post and modified the example official config here accordingly:
Thank you in advance for any help!
I connected the encoder acording to this post and modified the example official config here accordingly:
[Controller]
; Type of the input device
; 1 - Audi MMI 2G panel
; 2 - BMW iDrive Gen 1 controller
; 3 - BMW IBUS
; 4 - Audi RNSE
; 5 - Rotary Encoder
; 6 - GPIO
Type=5
[RotaryEncoder]
; GPIO pin number connected to the SIA/DT pin of the encoder
; For most rotary encoders you can control direction of the rotation by swapping SIA/DT abd SIB/CLK pins.
SiaPinNumber=12
; GPIO pin number connected to the the SIB/CLK pin of the encoder
; For most rotary encoders you can control direction of the rotation by swapping SIB/CLK and SIA/DT pins.
SibPinNumber=6
; GPIO pin number connected to the the SW pin of the encoder
SwPinNumber=13
; Key stroke that will be simulated after detection of left rotation
LeftKeyStrokes=F7
; Key stroke that will be simulated after detection of right rotation
RightKeyStrokes=F8
; Key stroke that will be simulated after detection of knob press/release
SwitchKeyStrokes=Ctrl+F11
Thank you in advance for any help!