pt.citar.diablu.nxt.brick
Class NXTButtonSensor
java.lang.Object
pt.citar.diablu.nxt.brick.NXTComponent
pt.citar.diablu.nxt.brick.NXTButtonSensor
public class NXTButtonSensor
- extends NXTComponent
- Author:
- Jorge Cardoso
Constructor Summary |
NXTButtonSensor(NXTBrick brick,
byte portAttached)
Coonstructs a new NXTButtonSensor object given the NXTBrick and the port number the
sensor is connected to. |
NXTButtonSensor
public NXTButtonSensor(NXTBrick brick,
byte portAttached)
- Coonstructs a new NXTButtonSensor object given the NXTBrick and the port number the
sensor is connected to.
- Parameters:
brick
- The NXTBrick.portAttached
- The port to which the sensor is attached. (0 - 3).
getValue
public int getValue()
isButtonPressed
public boolean isButtonPressed()
Processing library NXTComm by Jorge C. S. Cardoso. (c) 2014