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

imported the code to vs code platformio #53

Closed cnc4less closed 1 year ago

cnc4less commented 1 year ago

On compile, i get this error no declaration matches 'AiEsp32RotaryEncoder::AiEsp32RotaryEncoder(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)' how to fix it , regards

cnc4less commented 1 year ago

fixed by making it like this

public: AiEsp32RotaryEncoder( uint8_t encoderAPin = AIESP32ROTARYENCODER_DEFAULT_A_PIN, uint8_t encoderBPin = AIESP32ROTARYENCODER_DEFAULT_B_PIN, uint8_t encoderButtonPin = AIESP32ROTARYENCODER_DEFAULT_BUT_PIN, uint8_t encoderVccPin = AIESP32ROTARYENCODER_DEFAULT_VCC_PIN, uint8_t encoderSteps = AIESP32ROTARYENCODER_DEFAULT_STEPS);

igorantolic commented 1 year ago

Great thanks for info