|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IrReceiver
Interface to an infrared receiver which receives data from an infrared remote control.
Infrared receiver senses infrared light modulated at 38 kHz, which is the frequency many TV and home electronics remote controls use.
An infrared receiver can be used to:
SonyIrRemote
,
Mvp1IrRemote
Method Summary | |
---|---|
void |
initialize(int startMin,
int startMax,
int shortMin,
int threshold,
int longMax,
int numberOfBits,
boolean invertBits,
boolean reverseBits)
Initializes the receiver. |
int |
read()
Reads the next received value from the receiver if data is available. |
Method Detail |
---|
void initialize(int startMin, int startMax, int shortMin, int threshold, int longMax, int numberOfBits, boolean invertBits, boolean reverseBits)
The infrared receiver supports infrared protocols which transmit data by transmitting a long start pulse followed by short and long data bit pulses.
startMin
- minimum start bit time in microsecondsstartMax
- maximum start bit time in microsecondsshortMin
- minimum short pulse duration in microsecondsthreshold
- duration threshold distinguishing a short pulse from a long
pulselongMax
- maximum long pulse duration in microsecondsnumberOfBits
- number of data bits following the start bitinvertBits
- true if short pulses are ones, false if short pulses are zerosreverseBits
- true if data is transmitted least significant bit firstint read()
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |