A module to parse the NEC IR remote control protocol in Python
Project description
IRReceiver
A module to parse the NEC IR remote control protocol in Python
Description
This is a fully tested module that creates a parser for the NEC IR remote control protocol.
The NEC protocol is used by many remotes, you can read about it here.
NOTE: Although there is an example of this sketch that is made for the Raspberry PI, it is unlikely to work. The Raspberry Pi does not have a real time operating system and in my testing this did not work reliably. Not even close.
Dependencies
- This project has no external dependencies but the example code does depend on being run on a Raspberry Pi.
- All code follows PEP 8 and is run through YAPF before it is committed
Tested On
- A Raspberry Pi (first generation)
- A Yamaha MRX-90M remote
To Install
pip install irreceiver
To Use
- An example file can be found in the
examples
directory. - Here is a basic example of decoding an list of IR timing pulses:
from irreceiver import NecDecoder
decoder = NecDecoder()
# Create PULSES, a list of IR pulse timings
message = decoder.decode(PULSES)
Project Structure
Directory structure should be clear. All code is in the irreceiver
directory.
License
:copyright: Willy Nolan 2020
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
irreceiver-0.9.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for irreceiver-0.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 662e3bcfda3afd0f9845cb371e983cceb0f45970a433cda2184953717e87bc66 |
|
MD5 | b32c776fda0fa59d5fca489e14fa5c9a |
|
BLAKE2b-256 | 9a532ef2e87e8ee5d1ba3e4737d0d7d66421f3e128f937012b4a812ab5ae9105 |