|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dexterind.gopigo.components.IRReceiverSensor
public class IRReceiverSensor
It get access to the IR receiver sensor and receive IR signals
| Field Summary | |
|---|---|
private static Board |
board
The main object which handles the methods to get access to the resources connected to the board. |
private Debug |
debug
The debug object. |
private static IRReceiverSensor |
instance
The instance of the current object. |
private int |
pin
The current pin. |
| Constructor Summary | |
|---|---|
IRReceiverSensor()
|
|
| Method Summary | |
|---|---|
static IRReceiverSensor |
getInstance()
Provides a global point of access to the UltraSonicSensor instance. |
byte[] |
read()
Reads the IR signal. |
void |
setPin(int pin)
Sets the pin to use for the sensor. |
int |
write(int value)
Prepare the IR receiver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Board board
private static IRReceiverSensor instance
private int pin
private Debug debug
| Constructor Detail |
|---|
public IRReceiverSensor()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException| Method Detail |
|---|
public static IRReceiverSensor getInstance()
throws java.io.IOException,
java.lang.InterruptedException
UltraSonicSensor instance.
java.io.IOException
java.lang.InterruptedExceptionpublic void setPin(int pin)
pin - The number of the pin where the sensor is attached. The given value is increased by one.
public byte[] read()
throws java.io.IOException
java.io.IOException
public int write(int value)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||