Skip to main content

Send and receive IR commands using pigpio

Project description


A Python package that simplifies sending and receiving IR signals for the Raspberry Pi using pigpiod.


pip install pigpio


For Raspbian 9 (stretch)

pip install ircodec

For others

git clone
cd ircodec
python install


# Create a CommandSet for your remote control
# GPIO for the IR receiver: 23
# GPIO for the IR transmitter: 22
from ircodec.command import CommandSet
controller = CommandSet(emitter_gpio=22, receiver_gpio=23, description='TV remote')

# Add the volume up key
# Connected to pigpio
# Detecting IR command...
# Received.

# Send the volume up command

# Remove the volume up command

# Examine the contents of the CommandSet
# CommandSet(emitter=22, receiver=23, description="TV remote")
# {}

# Save to JSON

# Load from JSON
new_controller = CommandSet.load('another_tv.json')


pigpio Python examples


License: MIT License

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ircodec-0.3.0.tar.gz (7.0 kB view hashes)

Uploaded source

Built Distribution

ircodec-0.3.0-py3-none-any.whl (8.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page