pt.citar.diablu.nxt.brick
Class NXTBrick

java.lang.Object
  extended by pt.citar.diablu.nxt.brick.NXTBrick

public class NXTBrick
extends Object

The NXTBrick class just holds de connection channel for the Brick.

Author:
Jorge Cardoso

Constructor Summary
NXTBrick(NXTCommChannel channel)
          Creates a new instance of NXTBrick
 
Method Summary
 int getBatteryLevel()
          Returns the battery level.
 NXTCommChannel getChannel()
          Returns the channel used to communicate.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXTBrick

public NXTBrick(NXTCommChannel channel)
Creates a new instance of NXTBrick

Parameters:
channel - The NXTCommChannel used to communicate with the brick.
Method Detail

getChannel

public NXTCommChannel getChannel()
Returns the channel used to communicate.

Returns:
The NXTCommChannel used to communicate with the brick.

getBatteryLevel

public int getBatteryLevel()
Returns the battery level.

Returns:
The battery level in millivolts.


Processing library NXTComm by Jorge C. S. Cardoso. (c) 2014