infrared
– Send and Receive Messages via IR Light¶
Codex infrared transmitter/receiver
-
class
codex.infrared.
Infrared
(power, max_payload=16)[source]¶ Create an Infrared (IR) send/receive driver.
- Parameters
power (codex.Power) – Power object from codex module
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.