Battery-sensor interface (RCX Internal).
More...
#include <c++/Battery.H>
|
| static int | get () |
| | get the current battery strength value
|
| |
Battery-sensor interface (RCX Internal).
This class deals with the battery sensor.
It provides only the single get() method.
- See also
- The other sensor classes: Sensor, LightSensor, RotationSensor, TouchSensor
Definition at line 38 of file Battery.H.
◆ get()
| static int Battery::get |
( |
| ) |
|
|
inlinestatic |
get the current battery strength value
- Returns
- int current battery reading in milliVolts (mV)
- Note
- this is the c++ implementation of get_battery_mv()
Definition at line 45 of file Battery.H.
The documentation for this class was generated from the following file: