Xinyuan-LilyGO / T-QT

MIT License
94 stars 31 forks source link

Battery reading while charging & power off #34

Open mrudick1 opened 6 months ago

mrudick1 commented 6 months ago

I have attached an on/off switch. I'm unable to get the battery reading when the device is turned off and charging. Here is the behavior:

1) Not charging & turned on, IO4 reading is correct. 2) Charging & turned on, IO4 reading is correct. 3) Charging & turned OFF, IO4 reading shows full battery.

So it looks like IO4 gives me the charging voltage when turned off, not the battery voltage. I need to get the battery voltage so I can display the device charging.

How can I do this?