You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After working with different ESP32 boards, the A0 in the analogRead(A0) function needs to be replaced with m_potentiometerPin member. Most ESP32 boards has 4 or more GPIO pins that can be assigned for analog input. The default A0 may not always be the assigned correctly and will cause issues. On the board I am using A0 is defaulted to pin 36 but according to espressif pins 36 & 39 are used for the internal hall sensor.
Thanks again for your bug reports and the detailed explanation. As you can probably tell, I didn't spend enough time testing the hardware inputs. I will take care of the issue.
Activity
srwi commentedon Mar 7, 2023
Thanks again for your bug reports and the detailed explanation. As you can probably tell, I didn't spend enough time testing the hardware inputs. I will take care of the issue.
Fix usage of potentiometer pin (#13)
Merge pull request #15 from srwi/fix-potentiometer-pin-usage