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.
- PROTOCOLS protocol: Remote controller protocol.
- Byte command: Command to be sent.
When exiting from the program, the library releases the GPIO pin.