how to detect by software if I am connected by usb or I am using the battery?
-
I would like to check if I am charging the T-display-s3 or I am using the battery only. I know that led red is on if I am charging, but I would like to check it by software. It is possible?
Kind regards.
-
@hosky well, you could use the esp32 built in ADC to read pin 4 bat volt, or wire the 5V pin to a voltage divider and then to a GPIO, such as 16 and digitalRead it.