Xinyuan-LilyGO / T-Display-S3

MIT License
779 stars 193 forks source link

Detecting charging state #254

Closed jperrela closed 2 months ago

jperrela commented 4 months ago

Hi,

I'd like to detect whether the battery is charging or not, how can I do it? I can't find a pin connected to VBUS to read its state. The method of the battery example only helps to detect if the battery is present or not.

Thanks!

lewisxhe commented 3 months ago

The battery voltage can be detected. If it is greater than 4.2V, it can be determined that the USB is connected, but it cannot be determined whether it is charging. The charging indicator can only be checked for charging.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.