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.
static boolean isRechargeable()
           
 
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.

isRechargeable

public static boolean isRechargeable()

getVoltage

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

Returns:
Battery voltage in Volt.