Electron Solar Kit Charging Indicator?

This function is a method of the PMIC class.
As you yourself posted the respective code snippets, I supposed you’d know how to access such methods.