lejos.nxt
Class Battery

java.lang.Object
  extended by lejos.nxt.Battery

public class Battery
extends Object

Provides access to Battery.


Method Summary
static float getVoltage()
          Returns the battery voltage in volts.
static int getVoltageMilliVolt()
          Returns the battery voltage in millivolts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVoltageMilliVolt

public static int getVoltageMilliVolt()
Returns the battery voltage in millivolts.

Returns:
Battery voltage in mV.

getVoltage

public static float getVoltage()
Returns the battery voltage in volts.

Returns:
Battery voltage in Volt.