| aIR_ConfigTX | Index |
Definition:
Parameters:
| protocol | - | The type of IR protocol to look for. |
Return Value:
Description:
This routine configures the digital pin that is physically connected to the controller for IR data transmission. DIO pin number 5.
The IR transmitter can operate in different protocol modes.
| AIR_PROTOCOL_NEC | 0 | Set to make IR operate with the NEC protocol. |
| AIR_PROTOCOL_RC5 | 1 | Set to make IR operate with the RC5 protocol. |
| Note: | This routine only works with BrainStem GP 2.0 modules. |
Example:
#include <aIR.tea>
aIR_ConfigTX(AIR_PROTOCOL_NEC);
This configures the DIO (pin 5) for IR data transmission. Data will be sent using the NEC communication protocol.
Related: