pt.citar.diablu.nxt.brick
Class NXTComponent
java.lang.Object
pt.citar.diablu.nxt.brick.NXTComponent
- Direct Known Subclasses:
- NXTButtonSensor, NXTColorSensor, NXTLightSensor, NXTMotor, NXTProximitySensor, NXTSoundSensor
public abstract class NXTComponent
- extends Object
This class represents a sensor or a motor of the NXT. This class is an abstract class, meaning that programs never use it directly.
You should use one of the subclasses of NXTComponent.
- Author:
- Jorge Cardoso
Constructor Summary |
NXTComponent()
|
NXTComponent(NXTBrick brick,
byte portAttached)
Constructs a new component of the brick given a port to which the component is attached. |
NXTComponent
public NXTComponent()
NXTComponent
public NXTComponent(NXTBrick brick,
byte portAttached)
- Constructs a new component of the brick given a port to which the component is attached.
- Parameters:
brick
- The NXT Brick.portAttached
- The port to which this component is attached.
Processing library NXTComm by Jorge C. S. Cardoso. (c) 2014