EV3RT C API Reference [English]
An RTOS-based development platform for LEGO Mindstorms EV3.
 All Data Structures Functions Variables Enumerations Enumerator Groups

API for battery. More...

Functions

int ev3_battery_current_mA ()
 Get the current of battery. More...
 
int ev3_battery_voltage_mV ()
 Get the voltage of battery. More...
 

Detailed Description

API for battery.

Function Documentation

int ev3_battery_current_mA ( )

Get the current of battery.

Returns
Battery current in mA
int ev3_battery_voltage_mV ( )

Get the voltage of battery.

Returns
Battery voltage in mV