Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
igorantolic authored Mar 10, 2024
1 parent 819b922 commit f8a3142
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,13 @@ one of the 2 pins: connect to microcontroller Gnd
the other pin: connect to any microcontroller input pin -> in this example pin 25

**You have to set INPUT_PULLUP of Right and Left pins with `pinMode(ROTARY_ENCODER_A_PIN, INPUT_PULLUP);` and `pinMode(ROTARY_ENCODER_B_PIN, INPUT_PULLUP);`**
Look example Esp32RotaryEncoderTheShortestExampleNoResistors.
Look for example Esp32RotaryEncoderTheShortestExampleNoResistors.


update 2024-03-10:

There is a new option areEncoderPinsPulldownforEsp32. By default it is true, but in case you use ESP32 you can set it to true.
It doesn't make any change for ESP8266, only ESP32.
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.

```
rotaryEncoder.areEncoderPinsPulldownforEsp32 = false;
Expand Down

0 comments on commit f8a3142

Please sign in to comment.