Some functions for getting the state of the battery. It is not possible to give a percentage of the remaining energy, so only voltage and current are returned. However a voltage above 7 is good.
Returns the current of the battery.
Returns the voltage of the battery.