igorantolic / ai-esp32-rotary-encoder

Easy implement rotary encoder to your application using microcontroler like ESP32
GNU General Public License v2.0
284 stars 70 forks source link

setValue for AiEsp32RotaryEncoderNumberSelector is not working anymore #74

Closed bardoo closed 7 months ago

bardoo commented 9 months ago

Hi, and thanks for this nice library. I tried upgrading from 1.4 to 1.6, but it seems that the setValue() on the AiEsp32RotaryEncoderNumberSelector doesn't do anything anymore. It compiles and everything seems fine, but it just doesn't update with the new value. Let me know if you need more info.

kr4fty commented 8 months ago

Aren't you referring to the setEncoderValue() function?, which sets the encoder counter to the value

void setEncoderValue(long newValue);

DanielPineiroCalvo commented 8 months ago

Hi! I also I´m looking to modify the encoder counter value, but the funtion setEncoderValue(long newValue) does not compile. In my project the encoder send OSC values, but also can be change by OSC incoming menssages. Thanks for your help!

DanielPineiroCalvo commented 8 months ago

Hi again! I got it, the function is rotaryEncoder.reset(newValue)

Thanks four you work in this great library!!!