Is there a way to know if the USB is connected using Sparkfun's Photon Battery Shield


I use the Sparkfun’s Photon Battery Shield and a Particle Photon for a sensor combo box. The box can run with battery and when the battery is low a notification is displayed. The problem is that I can’t detect when the user plugs the USB to refill the battery. I have to check the voltage. Is there an other solution ?

Thank you.

1 Like