IR Remote
ir.send(message, index = 1)
Sends an IR message.
Parameters:
- message: character string with a maximum length of 30. Currently, only English characters, numbers, and punctuations are supported.
ir.receive(index = 1)
Obtains the received IR message.
Returns a character string.
ir.record(record_id, index = 1)
Records an IR message. This API function blocks the current thread for three seconds to complete the recording of the IR signal.
Parameters:
- record_id: numeric value, indicating the serial number of an IR message. The setting range is 1 to 2. The IR remote module can record a maximum of two IR signals.
ir.send_record(record_id, index = 1)
Sends the recorded IR message.
Parameters:
- record_id: numeric value, indicating the serial number of an IR message. The setting range is 1 to 2. The IR remote module can record a maximum of two IR signals.
ir.is_receive(message, index = 1)
Determines whether the IR remote module receives the specified IR signal.
Parameters:
- message: character string or character string variable. The following table describes the available variables and their definitions.
Variable |
Definition |
IR_REMOTE.up |
↑ |
IR_REMOTE.down |
↓ |
IR_REMOTE.left |
← |
IR_REMOTE.right |
→ |
IR_REMOTE.set |
Setting |
IR_REMOTE.zero |
0 |
IR_REMOTE.one |
1 |
IR_REMOTE.two |
2 |
IR_REMOTE.three |
3 |
IR_REMOTE.four |
4 |
IR_REMOTE.five |
5 |
IR_REMOTE.six |
6 |
IR_REMOTE.seven |
7 |
IR_REMOTE.eight |
8 |
IR_REMOTE.nine |
9 |
IR_REMOTE.A |
A |
IR_REMOTE.B |
B |
IR_REMOTE.C |
C |
IR_REMOTE.D |
D |
IR_REMOTE.E |
E |
IR_REMOTE.F |
F |
Comments
Please sign in to leave a comment.