The Power Shield library provides functions to use the on-board MAX17043 fuel guage via I2C
- Read voltage over serial: In this example the Particle device sends the volatge and SoC readings over serial every 1 second
- Publish voltage readings: In this example the Particle device publishes the voltage and SoC readings every 10 minutes and stays in deep sleep mode for the rest of the time