PhidgetIR |
A class for controlling a PhidgetIR. See your product manual for more specific API details, supported functionality, units, etc.
| PhidgetIR | A class for controlling a PhidgetIR. |
| Events | Events supported by PhidgetIR. |
| Properties | |
| LastCode | Gets the last code received. |
| LastLearnedCode | Gets the last code received. |
| Functions | |
| readRaw | Read raw IR data. |
| transmit | Transmit an IR code. |
| transmitRepeat | Transmit a repeat code. |
| transmitRaw | Transmit raw data. |
public function readRaw( buffer: Array, offset: int = 0, count: int = -1 ):int
Read raw IR data. Read data always starts with a space and ends with a pulse.
| buffer | an array to read data into |
| offset | offset in array to start writing data. Defaults to 0 (start of array); |
| count | maximum ammount of data to read. Defaults to size of array. |
The ammount of data actually read.
public function transmitRaw( data: Array, carrierFrequency: int = 0, dutyCycle: int = 0, gap: int = 0 ):void
Transmit raw data. Use this for codes that cannot be specified using a PhidgetIRCodeInfo object.
| data | the raw data to transmit. Data is in microseconds, and must start and end with a pulse. |
| carrierFrequency | carrier frequency to use. Optional, defaults to 38000kHz. |
| dutyCycle | duty cycle to use. Optional, defaults to 33%. |
| gap | gap length to maintain after data is transmitted. Optional, default is 0. |
Gets the last code received.
public function get LastCode():PhidgetIRCode
Gets the last code received.
public function get LastLearnedCode():PhidgetIRLearnedCode
Read raw IR data.
public function readRaw( buffer: Array, offset: int = 0, count: int = -1 ):int
Transmit an IR code.
public function transmit( code: String, codeInfo: PhidgetIRCodeInfo ):void
Transmit a repeat code.
public function transmitRepeat():void
Transmit raw data.
public function transmitRaw( data: Array, carrierFrequency: int = 0, dutyCycle: int = 0, gap: int = 0 ):void