|
Hi,
I am powering the orange pi 2G-IOT with a LiPo battery.
I would like to identify when the USB power (OTG) is unplugged and the board switches to battery supply.
I see in the schematics that sampling (voltage divider) of the USB power goes into ADC (analog to digital converter) in the RDA8810. this is line "AC_DIV_IN" in the schematic.
how can I read the ADC value? do you know of C/python code?
is there another way to detect USB power unplugging?
thank you!
|
|