IR Remote
Python Library for IR Remote Controller Transmitter.
Turta_IRRemote library is responsible for transmitting IR remote controller messages using the IR LED.
Add the following statement to the top of your Python code.
from turta_sensoruhat import Turta_IRRemote
Then, create an instance of the IRRemoteTx class.
ir = Turta_IRRemote.IRRemoteTx()
Now you're ready to access the library by calling its instance.
Sends the IR remote controller signal using the selected protocol.
write(protocol, command)
Parameters
PROTOCOLS protocol: Remote controller protocol. Byte[] command: Command to be sent. Returns
None
When exiting from the program, the library releases the GPIO pin.
Last modified 2yr ago