{ "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-trellis/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/trellis/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_Trellis.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Trellis\n :alt: Build Status\n\nThis library will allow you to control the LEDs and read button presses on the `Adafruit Trellis\nBoard `_. It will work with a single Trellis board, or\nwith a matrix of up to 8 Trellis boards.\n\nFor more details, see the `Adafruit Trellis Learn Guide `_.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython 2.0.0+ `_\n* `Bus Device `_\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=============\nSee `examples/trellis_simpletest.py `_ for full\nusage example.\n\n.. code:: python\n\n import time\n import busio\n from board import SCL, SDA\n from adafruit_trellis import Trellis\n\n # Create the I2C interface\n i2c = busio.I2C(SCL, SDA)\n\n # Create a Trellis object for each board\n trellis = Trellis(i2c) # 0x70 when no I2C address is supplied\n\n # Turn on every LED\n print('Turning all LEDs on...')\n trellis.led.fill(True)\n time.sleep(2)\n\n # Turn off every LED\n print('Turning all LEDs off...')\n trellis.led.fill(False)\n time.sleep(2)\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-trellis --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_trellis", "keywords": "adafruit trellis button led board hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-trellis", "package_url": "https://pypi.org/project/adafruit-circuitpython-trellis/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-trellis/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_trellis" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-trellis/1.2.1/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for Adafruit Trellis boards.", "version": "1.2.1" }, "last_serial": 4700976, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "f3c7d382009a289ac6b46ac254f20f11", "sha256": "797c1a23def20741402e354e6c08aad441250a755b3a4867d48ae6311d4412dd" }, "downloads": -1, "filename": "adafruit-circuitpython-trellis-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f3c7d382009a289ac6b46ac254f20f11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22302, "upload_time": "2018-08-08T22:01:05", "url": "https://files.pythonhosted.org/packages/7b/a5/b90fa352a7c306b242a7ec31625815e4a507274efcddf90c9ae2d7b64bc0/adafruit-circuitpython-trellis-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "de3c28edcce823c6d26e5bba373a1fb1", "sha256": "4a873eecc78d72e9830e530f5a4bc34d8e1dbec3a65eff6d489a06b64713bea0" }, "downloads": -1, "filename": "adafruit-circuitpython-trellis-1.2.0.tar.gz", "has_sig": false, "md5_digest": "de3c28edcce823c6d26e5bba373a1fb1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22307, "upload_time": "2018-11-12T20:39:25", "url": "https://files.pythonhosted.org/packages/b5/ea/229c9e5b75de6c1794dbd64c9cfaa79bd42450a4f21cbef38168883e637c/adafruit-circuitpython-trellis-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "d84af36a30b810bb5a22da2b93aaa093", "sha256": "e8520e53362b7aa222a1adda0c299f87cada1f57075f812e657eaaf2d779d029" }, "downloads": -1, "filename": "adafruit-circuitpython-trellis-1.2.1.tar.gz", "has_sig": false, "md5_digest": "d84af36a30b810bb5a22da2b93aaa093", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22054, "upload_time": "2019-01-16T00:16:08", "url": "https://files.pythonhosted.org/packages/50/2e/ffc101fe810591aae0942e917c6b1091e4273012bf8bd33dd2934147a3a4/adafruit-circuitpython-trellis-1.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d84af36a30b810bb5a22da2b93aaa093", "sha256": "e8520e53362b7aa222a1adda0c299f87cada1f57075f812e657eaaf2d779d029" }, "downloads": -1, "filename": "adafruit-circuitpython-trellis-1.2.1.tar.gz", "has_sig": false, "md5_digest": "d84af36a30b810bb5a22da2b93aaa093", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22054, "upload_time": "2019-01-16T00:16:08", "url": "https://files.pythonhosted.org/packages/50/2e/ffc101fe810591aae0942e917c6b1091e4273012bf8bd33dd2934147a3a4/adafruit-circuitpython-trellis-1.2.1.tar.gz" } ] }