Xinyuan-LilyGO / LilyGo-EPD47

GNU General Public License v3.0
381 stars 119 forks source link

Battery Voltage #14

Closed atrueresistance closed 3 years ago

atrueresistance commented 3 years ago

Looking for a way to get the battery percentage from the board. I looked at the buttons example you posted and I see you defined #define BATT_PIN 36. Can this be used to read the battery voltage?

float voltage = analogRead(36) / 4096.0 * 7.46; seems to come out null. Is there a way without wiring into additional GPIO to check the voltage?

atrueresistance commented 3 years ago

Duplicate, Github gave a 500 error.