ai-esp32-rotary-encoder
ai-esp32-rotary-encoder copied to clipboard
Added constructor argument to choose pinMode for encoder pins
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.