diff --git a/README.md b/README.md index 18c643f..84ef34c 100644 --- a/README.md +++ b/README.md @@ -133,8 +133,12 @@ update 2024-03-10: There is an optional parameter in the constructor areEncoderPinsPulldownforEsp32. By default it is true, but in case you use ESP32 you can set it to false. Please note that it doesn't make any change for ESP8266, but only for ESP32. +Here in example pay attention to the end of the line - parameter ",false". + +To modify other examples just add ", false" as an additional parameter. + ``` -rotaryEncoder.areEncoderPinsPulldownforEsp32 = false; +AiEsp32RotaryEncoder rotaryEncoder = AiEsp32RotaryEncoder(ROTARY_ENCODER_A_PIN, ROTARY_ENCODER_B_PIN, ROTARY_ENCODER_BUTTON_PIN, ROTARY_ENCODER_VCC_PIN, ROTARY_ENCODER_STEPS,false); ``` There is a new option isButtonPulldown. By default it is false, but in case you use ESP32 you can set it to true. See Multi-select example.