ir - infrared remote control#
Adapted Air780E Air780EP
Note
This page document is automatically generated by this file. If there is any error, please submit issue or help modify pr, thank you!
Tip
This library has its own demo,click this link to view the demo example of ir
ir.sendNEC(pin, addr, cmd, repeat, disablePWM)#
Send NEC Data
Parameters
Incoming Value Type |
Explanation |
---|---|
int |
Number of GPIO pins used |
int |
User code (greater than 0xff uses Extended NEC mode) |
int |
Data Code |
int |
Optional, the number of times the pilot code is sent (once 110ms), the default is 0 times |
bool |
optional, whether to prohibit direct transmission of pwm waves, default false |
Return Value
None
Examples
--Direct
ir.sendNEC(0, 0x11, 0x22)
--External 38K PWM carrier, only control level
ir.sendNEC(0, 0x11, 0x22,0,true)