getBatterySoC()
getBatteryVoltage()
getTemperature()
These functions returns information from the built-in sensors available on the Sprout mainboard.
getBatterySoC
returns the State of Charge (SoC) of the built-in LiPo battery. The returning value is an integer number between 0~100 (percent).
getBatteryVoltage
returns the voltage of the built-in LiPo battery. The returning value is an integer number representing the battery voltage in millivolts.
getTemperature
returns the ambient temperature of the mainboard in Celcius.