{ "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-matrixkeypad/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/matrixkeypad/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_MatrixKeypad.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_MatrixKeypad\n :alt: Build Status\n\nThis simple helper library lets you create objects that will scan and detect keypresses on passive matrix keypads\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\timport adafruit_matrixkeypad\n\tfrom digitalio import DigitalInOut\n\timport board\n\n\t# Classic 3x4 matrix keypad\n\tcols = [DigitalInOut(x) for x in (board.D2, board.D0, board.D4)]\n\trows = [DigitalInOut(x) for x in (board.D1, board.D6, board.D5, board.D3)]\n\tkeys = ((1, 2, 3),\n\t\t(4, 5, 6),\n\t\t(7, 8, 9),\n\t\t('*', 0, '#'))\n\n\tkeypad = adafruit_matrixkeypad.Matrix_Keypad(rows, cols, keys)\n\n\twhile True:\n\t keys = keypad.pressed_keys\n\t if keys:\n\t\tprint(\"Pressed: \", keys)\n\t time.sleep(0.1)\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\nZip release files\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-matrixkeypad --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_MatrixKeypad", "keywords": "adafruit matrix keypad hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-matrixkeypad", "package_url": "https://pypi.org/project/adafruit-circuitpython-matrixkeypad/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-matrixkeypad/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_MatrixKeypad" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-matrixkeypad/1.1.4/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for passive matrix keypads.", "version": "1.1.4" }, "last_serial": 4701184, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "839c942961f9d95f953cd144f2a0fb11", "sha256": "69dc2907cea48ef3582855c60f563cadaa5ba66fde74884c247a6e2e90b24f7a" }, "downloads": -1, "filename": "adafruit-circuitpython-matrixkeypad-1.1.0.tar.gz", "has_sig": false, "md5_digest": "839c942961f9d95f953cd144f2a0fb11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19818, "upload_time": "2018-08-06T21:01:30", "url": "https://files.pythonhosted.org/packages/3f/12/0512897cb0e444e41ed71bece88c6f7be6a27728063e7db69daea29a6cbd/adafruit-circuitpython-matrixkeypad-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "26aa8dc63596b88d060a46fd7e012d4e", "sha256": "6a762d4d4266a0d320d5e04c0e1e2ec3f7c0c48b44326aef0c0ed1ab14f41965" }, "downloads": -1, "filename": "adafruit-circuitpython-matrixkeypad-1.1.1.tar.gz", "has_sig": false, "md5_digest": "26aa8dc63596b88d060a46fd7e012d4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19815, "upload_time": "2018-08-06T21:09:56", "url": "https://files.pythonhosted.org/packages/1c/86/69c8a1d1467c8401f566db481541b5051eaad955d0ee054faac3a80acd77/adafruit-circuitpython-matrixkeypad-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "15d1bf89da3f43fb748814f91af11072", "sha256": "a6e1584a29a64eb59652011564274380eb4cdf0089c6828872696f2ffba6fe8e" }, "downloads": -1, "filename": "adafruit-circuitpython-matrixkeypad-1.1.2.tar.gz", "has_sig": false, "md5_digest": "15d1bf89da3f43fb748814f91af11072", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19986, "upload_time": "2018-10-25T22:01:35", "url": "https://files.pythonhosted.org/packages/25/43/e85d8badb50c43f219acef57002975b04d40f1eb85e1892a66e96f2fc922/adafruit-circuitpython-matrixkeypad-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "b77f617cb9bb5b706090aaa23b2343ca", "sha256": "6d667a20e5b48f4a19944bcf4c236c2c604d5cb4286e1fc8e487bc976aa4032a" }, "downloads": -1, "filename": "adafruit-circuitpython-matrixkeypad-1.1.3.tar.gz", "has_sig": false, "md5_digest": "b77f617cb9bb5b706090aaa23b2343ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20138, "upload_time": "2018-11-12T20:31:42", "url": "https://files.pythonhosted.org/packages/f5/02/5efd8343a39463ba3126e40935133255df9c31694f318737667f47b00ef4/adafruit-circuitpython-matrixkeypad-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "9af42c29dbfbf6a4c2f5ebf3688d8c15", "sha256": "440bd5e8fced3eec33658278124d8283ccc89b8e4fad1d2a176d2c64bb151ed6" }, "downloads": -1, "filename": "adafruit-circuitpython-matrixkeypad-1.1.4.tar.gz", "has_sig": false, "md5_digest": "9af42c29dbfbf6a4c2f5ebf3688d8c15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19397, "upload_time": "2019-01-16T02:05:51", "url": "https://files.pythonhosted.org/packages/33/f2/c5c7bf7c9bf874a3cf3f77ab20eb95cb169b0711c09dc77a7c27a266ca48/adafruit-circuitpython-matrixkeypad-1.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9af42c29dbfbf6a4c2f5ebf3688d8c15", "sha256": "440bd5e8fced3eec33658278124d8283ccc89b8e4fad1d2a176d2c64bb151ed6" }, "downloads": -1, "filename": "adafruit-circuitpython-matrixkeypad-1.1.4.tar.gz", "has_sig": false, "md5_digest": "9af42c29dbfbf6a4c2f5ebf3688d8c15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19397, "upload_time": "2019-01-16T02:05:51", "url": "https://files.pythonhosted.org/packages/33/f2/c5c7bf7c9bf874a3cf3f77ab20eb95cb169b0711c09dc77a7c27a266ca48/adafruit-circuitpython-matrixkeypad-1.1.4.tar.gz" } ] }