Detect USB supply connected

Hi there,

is there a way with the CubeCell board to detect if external USB voltage is connected?

Thanks, Edi

CubeCell board has corresponding power indicator

Well, I want to detect it in software to decide if I can do power intense tasks or not.

all you can do is to read the battery voltage and decide if usb is connected

Oh :crazy_face:. That could take hours. Well, thank you!

In CubeCell, there are corresponding routines for reading battery voltage.
When the battery is not in use, the voltage read is the output voltage of the charging chip, and the charging chip is powered by the USB, so that you can know whether the USB is connected. But the USB voltage cannot be read directly.