Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

analogRead A0 pin assignment #13

Closed
gootzte opened this issue Mar 3, 2023 · 1 comment · Fixed by #15
Closed

analogRead A0 pin assignment #13

gootzte opened this issue Mar 3, 2023 · 1 comment · Fixed by #15

Comments

@gootzte
Copy link

gootzte commented Mar 3, 2023

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.

@srwi
Copy link
Owner

srwi commented 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.

srwi added a commit that referenced this issue Mar 7, 2023
@srwi srwi closed this as completed in #15 Mar 7, 2023
srwi added a commit that referenced this issue Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants