infrared
– Send and Receive Messages via IR Light¶
CodeAIR infrared transmitter/receiver
-
class
codeair.infrared.
Infrared
(max_payload=16)[source]¶ Create an Infrared (IR) send/receive driver.
- Parameters
max_payload (int) – Maximum number of rx bytes “in-flight” or queued.
-
flush
()[source]¶ Clear and discard the receive buffer, without decoding it. Can be used after ‘send()’ to avoid receiving “loopback” data.