Xinyuan-LilyGO / T-Deck

191 stars 43 forks source link

Measure battery left precent #27

Closed FBIGlowie closed 2 months ago

FBIGlowie commented 2 months ago

How could I go about measuring the battery voltage? Is it as easy as setting some ADC pin to input and measuring that voltage?

FBIGlowie commented 2 months ago

nvm

define TDECK_BAT_ADC 4