public class IRRemoteSensor extends GenericIRSensor
GenericIRSensor.IRValue
Constructor and Description |
---|
IRRemoteSensor()
Creates a sensor instance connected to port S1.
|
IRRemoteSensor(SensorPort port)
Creates a sensor instance connected to the given port.
|
Modifier and Type | Method and Description |
---|---|
int |
getCommand(int channel)
Returns the command code corresponding to the currently
pressed buttons on the the Remote IR Command.
|
java.lang.String |
getCommandStr(int channel)
Returns the string represention of the command code corresponding
to the currently pressed buttons on the the Remote IR Command.
|
static java.lang.String |
toString(int cmd)
Converts integer command to string representation.
|
public IRRemoteSensor(SensorPort port)
port
- the port where the sensor is plugged-inpublic IRRemoteSensor()
public int getCommand(int channel)
channel
- the channel on the Remote (1..4)public static java.lang.String toString(int cmd)
cmd
- the integer commandpublic java.lang.String getCommandStr(int channel)
channel
- the channel on the Remote (1..4)