Skip to content

ESP32 Heltec Dev Board - analogRead(37) returns 4095 #1888

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

Closed
HarroldMonroe opened this issue Jun 27, 2022 · 1 comment
Closed

ESP32 Heltec Dev Board - analogRead(37) returns 4095 #1888

HarroldMonroe opened this issue Jun 27, 2022 · 1 comment

Comments

@HarroldMonroe
Copy link

I'm using a ESP32 by Heltec with the TFT_eSPI library . Analog pin 37 (adc1_1) is the battery voltage pin.
The code analogRead(37) returns 4095. Which is the adc 12 bit max.
I get appropriate readings in sketches that don't use the TFT eSPI library.
Is this pin used/blocked in the library somewhere?

@Bodmer
Copy link
Owner

Bodmer commented Jun 28, 2022

The library only uses GPIO specified in the setup file.
See also here:
espressif/arduino-esp32#2422

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants