SolarCharger library is intended to be used with the Solar Charger Shield by Seeedstudio or with a clone if it exists.
The only functionality provided is to measure the voltage of Lipo Battery if it is enabled in the shield.
Use the Arduino Library Manager or the PlatformIO Library Manager to install the library.
- Include the library header.
#include <SolarCharger.h>
- Init SolarCharger instance;
SolarCharger solarCharger(A0);
- Read voltage in the loop function.
float volatge = solarCharger.readVoltage();
