Closed Arielhh closed 5 days ago
You could monitor the battery voltage (with the pin 4 ADC) which is nominally 3.3 to 4.2 and when it jumps to 5V, you know that USB is connected.
Many thanks, it's a good idea, this is exactly what i was trying to do right now :)
It working thx 👍
Hi, When working with the battery, Is there a way to detect, using code only, when a usb power is connected (not using external components or connecting any additional cables)?
Thx