I tested Lib AiEsp32RotaryEncoder on Arduino 2.0.2 and it compiling and working
on PIO I got error:
.pio/libdeps/esp32dev/Ai Esp32 Rotary Encoder/src/AiEsp32RotaryEncoder.cpp:135:1: error: no declaration matches ‘AiEsp32RotaryEncoder::AiEsp32RotaryEncoder(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)’
AiEsp32RotaryEncoder::AiEsp32RotaryEncoder(uint8_t encoder_APin, uint8_t encoder_BPin, uint8_t encoder_ButtonPin, uint8_t encoder_VccPin, uint8_t encoderSteps)
although on header
AiEsp32RotaryEncoder(
uint8_t encoderAPin = AIESP32ROTARYENCODER_DEFAULT_A_PIN,
uint8_t encoderBPin = AIESP32ROTARYENCODER_DEFAULT_B_PIN,
uint8_t encoderButtonPin = AIESP32ROTARYENCODER_DEFAULT_BUT_PIN,
int8_t encoderVccPin = AIESP32ROTARYENCODER_DEFAULT_VCC_PIN,
uint8_t encoderSteps = AIESP32ROTARYENCODER_DEFAULT_STEPS);