{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-irremote/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/irremote/en/latest/\n :alt: Documentation Status\n\n.. image :: https://img.shields.io/discord/327254708534116352.svg\n :target: https://discord.gg/nBQh6qu\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_IRRemote.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_IRRemote\n :alt: Build Status\n\nCircuitPython driver for use with IR Receivers.\n\nExamples of products to use this library with:\n\n* `Circuit Playground Express `_\n\n* `IR Receiver Sensor `_\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nUsage Example\n=============\n\n.. code-block:: python\n\n # Circuit Playground Express Demo Code\n # Adjust the pulseio 'board.PIN' if using something else\n import pulseio\n import board\n import adafruit_irremote\n pulsein = pulseio.PulseIn(board.REMOTEIN, maxlen=120, idle_state=True)\n decoder = adafruit_irremote.GenericDecode()\n\n # size must match what you are decoding! for NEC use 4\n received_code = bytearray(4)\n\n while True:\n pulses = decoder.read_pulses(pulsein)\n print(\"Heard\", len(pulses), \"Pulses:\", pulses)\n try:\n code = decoder.decode_bits(pulses, debug=False)\n print(\"Decoded:\", code)\n except adafruit_irremote.IRNECRepeatException: # unusual short code!\n print(\"NEC repeat!\")\n except adafruit_irremote.IRDecodeException as e: # failed to decode\n print(\"Failed to decode: \", e.args)\n\n print(\"----------------------------\")\n\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-irremote --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_IRRemote", "keywords": "adafruit infrared transmit receive tx rx ir hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-irremote", "package_url": "https://pypi.org/project/adafruit-circuitpython-irremote/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-irremote/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_IRRemote" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-irremote/3.4.0/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for infrared transmit and receive.", "version": "3.4.0" }, "last_serial": 5838283, "releases": { "3.3.0": [ { "comment_text": "", "digests": { "md5": "d31f1c0cf3506521f4111bd4f53bdcd6", "sha256": "b8670a7f83bea86e77d013011145a9c96be20e3c315db9f13f4c554f38dcfd88" }, "downloads": -1, "filename": "adafruit-circuitpython-irremote-3.3.0.tar.gz", "has_sig": false, "md5_digest": "d31f1c0cf3506521f4111bd4f53bdcd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20161, "upload_time": "2018-08-07T00:43:18", "url": "https://files.pythonhosted.org/packages/53/e8/f97a55979a71345fd052dbc16f367bcbddb0773ab33a13be51d58b72d1ec/adafruit-circuitpython-irremote-3.3.0.tar.gz" } ], "3.3.1": [ { "comment_text": "", "digests": { "md5": "0832419e511d2360d295f4056666d16a", "sha256": "0fb8d9341dc44135b9cd39535db5618a5a624db4d3df1ebe081ffa6733b32055" }, "downloads": -1, "filename": "adafruit-circuitpython-irremote-3.3.1.tar.gz", "has_sig": false, "md5_digest": "0832419e511d2360d295f4056666d16a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19712, "upload_time": "2019-01-15T00:23:39", "url": "https://files.pythonhosted.org/packages/58/ec/95f7d3d30058d76e0572b064800190c80e35612df22cd2c07d873fed5cf7/adafruit-circuitpython-irremote-3.3.1.tar.gz" } ], "3.3.2": [ { "comment_text": "", "digests": { "md5": "396c3fee91a37a1c4fa7f856f4aae528", "sha256": "66d227189598a48f6953469fa64ac871c4e232876e1ae28f30a25a6036833439" }, "downloads": -1, "filename": "adafruit-circuitpython-irremote-3.3.2.tar.gz", "has_sig": false, "md5_digest": "396c3fee91a37a1c4fa7f856f4aae528", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19713, "upload_time": "2019-05-10T04:21:05", "url": "https://files.pythonhosted.org/packages/62/8e/aa7288231e35062bc2a720a0b6769310a5763cdbf6335794a84af18732c6/adafruit-circuitpython-irremote-3.3.2.tar.gz" } ], "3.4.0": [ { "comment_text": "", "digests": { "md5": "4ef7811b9c791604073d8e7f832e24e4", "sha256": "046f19d210657c6f3b055c08042e9fbca9ac5abd4e8de484f3e0ecac1e7f3196" }, "downloads": -1, "filename": "adafruit-circuitpython-irremote-3.4.0.tar.gz", "has_sig": false, "md5_digest": "4ef7811b9c791604073d8e7f832e24e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19631, "upload_time": "2019-09-16T21:21:00", "url": "https://files.pythonhosted.org/packages/cf/4d/f9279151b8ca56f33a223ebb3690e23e577b32859cfe6609fb2a45e20a43/adafruit-circuitpython-irremote-3.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4ef7811b9c791604073d8e7f832e24e4", "sha256": "046f19d210657c6f3b055c08042e9fbca9ac5abd4e8de484f3e0ecac1e7f3196" }, "downloads": -1, "filename": "adafruit-circuitpython-irremote-3.4.0.tar.gz", "has_sig": false, "md5_digest": "4ef7811b9c791604073d8e7f832e24e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19631, "upload_time": "2019-09-16T21:21:00", "url": "https://files.pythonhosted.org/packages/cf/4d/f9279151b8ca56f33a223ebb3690e23e577b32859cfe6609fb2a45e20a43/adafruit-circuitpython-irremote-3.4.0.tar.gz" } ] }