-
Notifications
You must be signed in to change notification settings - Fork 0
IRremote library API
The API uses an IRsend object to send a code, and an IRrecv object to receive a code. The library cannot send and receive at the same time, but can switch between sending and receiving.
Creates a send object
Sends the value as an NEC-format IR code. bits specifies the length of the code, typically 16.
Sends the value as a Sony-format IR code.
Sends the value as a RC5-format IR code.
Sends the value as a RC6-format IR code.
Sends a code corresponding to the buffer of raw durations.
Creates a receiver object.
Starts listening for an IR code.
Returns 1 if there is a received code available, and 0 otherwise.
The fields of results are:
decode_type: NEC, SONY, RC5, RC6, or UNKNOWN
value: the received code value
bits: The number of bits received
rawbuf[]: Raw durations
rawlen: Number of records in rawbuf
This must be called after irrecv.decode() to resume listening for a code.