irrp
Basically irrp.py but as a python module so you can integrate it easily with your Python program.
Examples
To record:
import pigpio
pi = pigpio.pi()
gpio_pin = 18
# Record the IR data
import irrp
rr = irrp.RecordReplayer(pi)
print(rr.record(gpio_pin))
# optionally, save to a file:
import json
json.dump(open("data.json", "wb"))
To replay:
import pigpio
pi = pigpio.pi()
gpio_pin = 18
# load the recorded data
import json
data = json(load(open("data.json")))
# replay the data
import irrp
rr = irrp.RecordReplayer(pi)
rr.replay(gpio_pin, data)
To record and compare data:
import pigpio
pi = pigpio.pi()
gpio_pin = 18
# record data
import irrp
rr = irrp.RecordReplayer(pi)
rec = rr.record(gpio_pin)
import json
data = json(load(open("data.json")))
irrp.compare(data, rec)
Release files for irrp 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| irrp-1.0.1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| irrp-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / irrp-1.0.1.tar.gz
| Download URL | irrp-1.0.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ada24df3d580261b1b68f4c15d8a5eeed491c1064d6ebf036dd2c9302e2f3060
|
|
BLAKE2b-256 checksum How to use checksums |
6c89834ef2c075bc8a9bfff44cb3e9570ec42d6d11496e2aebbc08e1783a612e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Release files / irrp-1.0.1-py2.py3-none-any.whl
| Download URL | irrp-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ad100900056a7be36b1b1e84369db05dc2525f850ca3fcbe06084934db2bd39c
|
|
BLAKE2b-256 checksum How to use checksums |
c6a5629d2960057477bc2d105cc185b70ba27fcc68c4904fc9144af8fbad2c5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|