Edzelf / ESP32Radio-V2

New version of the well known ESP32 Radio. Now optional I2S output!
Apache License 2.0
197 stars 49 forks source link

Rotary encoder goes wrong direction #102

Closed stefi01 closed 1 year ago

stefi01 commented 1 year ago

How do I change the direction of the encoder, volume up (clockwise) makes the volume go down and anticlockwise volume up

Edzelf commented 1 year ago

Simply reverse the 2 signals (usually clk and dt). You can do this by resoldering the wires to the switch or to swap the pin definitions in the config page of the webinterface, for example:

pin_enc_clk = 25     # GPIO rotary encoder CLK
pin_enc_dt = 26      # GPIO rotary encoder DT

to

pin_enc_clk = 26     # GPIO rotary encoder CLK
pin_enc_dt = 25      # GPIO rotary encoder DT
stefi01 commented 1 year ago

thanks for the reply, thats fixed, next is try work out the lcd's sd card, then remote and all finished :)