Skip to content

analogRead A0 pin assignment #13

Closed

Description

@gootzte

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.

Activity

  1. srwi commented on Mar 7, 2023

    @srwi
    Owner

    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.

  2. added a commit that references this issue on Mar 7, 2023
  3. added a commit that references this issue on Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions