Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## lejos.nxt
Class Battery

    java.lang.Object
      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
`equals, getClass, hashCode, notify, notifyAll, toString, 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD