Power shield reference [Solved]

I purchased the power shield and would like to use it as a monitor when power is off. I tried using the D3 pin alert (soldered) to see if an alert is raised but I am missing the API for setting the sensitivity.

Any help would be great. Ideally I would like to tell whether I am running off the USB or Battery.

Have you seen the Power Shield library
https://build.particle.io/libs/55ae734aa93b0e40240006d0/tab/PowerShield.h

And the datasheet for the controler, to understand what the parameter for setAlertThreshold(byte threshold) means

2 Likes

Thank you - seems this is exactly what I needed!!

1 Like