Hello, I am working on an esp32 WROOM board. I need to use my rotary encoder, with center pin connected to GND, so each pin should be configured with PULLUP resistor instead of PULDOWN.
I see that it would be vast with:
encoder.areEncoderPinsPulldownforEsp32=false;
to enable PULLUP resistors instead of PULLDOWN resistors, but it does nothing.
When I look in the library, the AiEsp32RotaryEncoder.cppfile I see that the constructor is in charge of setting the PULLUP or PULLDOWN resistors
The question is, shouldn't this be inside the AiEsp32RotaryEncoder::begin() function? Because otherwise it does not produce any effect since the configuration of the resistors is done in the constructor.
Hello, I am working on an esp32 WROOM board. I need to use my rotary encoder, with center pin connected to GND, so each pin should be configured with PULLUP resistor instead of PULDOWN.
I see that it would be vast with:
encoder.areEncoderPinsPulldownforEsp32=false;
to enable PULLUP resistors instead of PULLDOWN resistors, but it does nothing. When I look in the library, the
AiEsp32RotaryEncoder.cpp
file I see that the constructor is in charge of setting the PULLUP or PULLDOWN resistorsThe question is, shouldn't this be inside the
AiEsp32RotaryEncoder::begin()
function? Because otherwise it does not produce any effect since the configuration of the resistors is done in the constructor.Sorry if I'm missing something
Fragment of my program: