{ "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-trellism4/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/trellism4/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_TrellisM4.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_TrellisM4\n :alt: Build Status\n\nThis high level library provides objects that represent Trellis M4 hardware.\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\nInstalling from PyPI\n--------------------\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI `_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-trellism4\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-trellism4\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n mkdir project-name && cd project-name\n python3 -m venv .env\n source .env/bin/activate\n pip3 install adafruit-circuitpython-trellism4\n\nUsage Example\n=============\n\nThis example prints out the coordinates of a button each time it is pressed and released:\n\n.. code-block:: python\n\n import time\n import adafruit_trellism4\n\n trellis = adafruit_trellism4.TrellisM4Express()\n\n current_press = set()\n while True:\n pressed = set(trellis.pressed_keys)\n for press in pressed - current_press:\n print(\"Pressed:\", press)\n for release in current_press - pressed:\n print(\"Released:\", release)\n time.sleep(0.08)\n current_press = pressed\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-trellism4 --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_TrellisM4", "keywords": "adafruit trellism4 hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-trellism4", "package_url": "https://pypi.org/project/adafruit-circuitpython-trellism4/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-trellism4/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_TrellisM4" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-trellism4/1.4.0/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library Trellis M4 Express.", "version": "1.4.0" }, "last_serial": 4780406, "releases": { "1.2.0": [ { "comment_text": "", "digests": { "md5": "55b7b20f6c17f2702f4e3386c8567382", "sha256": "832c6ee3c5d967e647f4e68c3bbb596b952ecc4cad8161bf3000c9a5b98b3bf8" }, "downloads": -1, "filename": "adafruit-circuitpython-trellism4-1.2.0.tar.gz", "has_sig": false, "md5_digest": "55b7b20f6c17f2702f4e3386c8567382", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21558, "upload_time": "2018-11-08T23:10:33", "url": "https://files.pythonhosted.org/packages/5d/e5/c7ee1754db27ee6b4449133f63e6b652f5da2fd377b79ebdec28453c6555/adafruit-circuitpython-trellism4-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "79187d9500466eebdd17c752ca9c64c5", "sha256": "7d6f08678b2191c5dfe65746d70a34b96ca9bfac9861b943fb6b7b8895f1c1ab" }, "downloads": -1, "filename": "adafruit-circuitpython-trellism4-1.2.1.tar.gz", "has_sig": false, "md5_digest": "79187d9500466eebdd17c752ca9c64c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21755, "upload_time": "2018-11-12T21:37:41", "url": "https://files.pythonhosted.org/packages/71/66/c8540255b312addf84ca2e431afbeae0158caf8aed3c6c3cd6fe388ccb9d/adafruit-circuitpython-trellism4-1.2.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "8e4e229898c3d7e312ce3ed691cf496a", "sha256": "9139c4e57cc504acf914dbf8c84a749b86ee49cc980984ec497ffd27aa5f7625" }, "downloads": -1, "filename": "adafruit-circuitpython-trellism4-1.3.0.tar.gz", "has_sig": false, "md5_digest": "8e4e229898c3d7e312ce3ed691cf496a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22105, "upload_time": "2018-11-20T16:59:46", "url": "https://files.pythonhosted.org/packages/0d/23/6841a110ec39ff224b37e402794f177682d6a426984bbf5def89736ecc0e/adafruit-circuitpython-trellism4-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "8b9a74157953e5b3ee679b0f2024548d", "sha256": "8a204eb2fcf4693a3a3db4629892416e94fb1b9164a44498e17321894b0abf44" }, "downloads": -1, "filename": "adafruit-circuitpython-trellism4-1.3.1.tar.gz", "has_sig": false, "md5_digest": "8b9a74157953e5b3ee679b0f2024548d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21147, "upload_time": "2019-01-16T02:16:53", "url": "https://files.pythonhosted.org/packages/2d/d6/8e688773ee5824c3d74f173530afbe46e41c455c961d2815954a2910968a/adafruit-circuitpython-trellism4-1.3.1.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "5e74413976cde15fefbca43018cbb93e", "sha256": "6701d3be17f50fd07fc1c262f29ea156835a6a159d244585ea31edf90b6b6370" }, "downloads": -1, "filename": "adafruit-circuitpython-trellism4-1.4.0.tar.gz", "has_sig": false, "md5_digest": "5e74413976cde15fefbca43018cbb93e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21189, "upload_time": "2019-02-05T02:27:03", "url": "https://files.pythonhosted.org/packages/20/7b/20a35f758637d93a2cb97b5c72ac1734a77e123ddc53bcbcd2e079a5dc24/adafruit-circuitpython-trellism4-1.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5e74413976cde15fefbca43018cbb93e", "sha256": "6701d3be17f50fd07fc1c262f29ea156835a6a159d244585ea31edf90b6b6370" }, "downloads": -1, "filename": "adafruit-circuitpython-trellism4-1.4.0.tar.gz", "has_sig": false, "md5_digest": "5e74413976cde15fefbca43018cbb93e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21189, "upload_time": "2019-02-05T02:27:03", "url": "https://files.pythonhosted.org/packages/20/7b/20a35f758637d93a2cb97b5c72ac1734a77e123ddc53bcbcd2e079a5dc24/adafruit-circuitpython-trellism4-1.4.0.tar.gz" } ] }