ai-esp32-rotary-encoder icon indicating copy to clipboard operation
ai-esp32-rotary-encoder copied to clipboard

Added constructor argument to choose pinMode for encoder pins

Open fehlfarbe opened this issue 1 year ago • 0 comments

Hi! My ESP32 based PCB has an encoder that is connected to GND so my pins have to be pulled up. Unfortunately the pinMode is set in the constructor and I cannot change the variable areEncoderPinsPulldownforEsp32 before creating the AiEsp32RotaryEncoder object. That's why I extended the constructor arguments and set the default values so it won't change the current behavior.

fehlfarbe avatar Sep 15 '23 21:09 fehlfarbe