Xinyuan-LilyGO / LilyGo-EPD47

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

Battery 18650 charging #62

Closed miticolars closed 2 years ago

miticolars commented 2 years ago

Hi, I would to check if the battery is charging. I'm able to check the voltage and to know if the usb cable is connected (voltage > 4,5v), but I don't know how check if the battery is charging. I saw that when charging a red led is lighted up on the board. Please help me. Thanks

miticolars commented 2 years ago

Maybe I resolved. I think that I can use the voltage measured. If the voltage <= 4.2, I'm running by battery, if the voltage >4.2 and <4.8 is charging, if is >= 4.8v is powered by usb and is not charging. Bye!