Xinyuan-LilyGO / T-Deck

302 stars 54 forks source link

Measure battery left precent #27

Closed FBIGlowie closed 6 months ago

FBIGlowie commented 6 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 6 months ago

nvm

define TDECK_BAT_ADC 4