{ "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-pixie/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/pixie/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_Pixie.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Pixie\n :alt: Build Status\n\n.. A driver for Pixie - 3W Chainable Smart LED Pixel\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--------------------\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-pixie\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-pixie\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-pixie\n\nUsage Example\n=============\n\n.. code-block::python\n\n import time\n import board\n import adafruit_pixie\n import busio\n\n uart = busio.UART(board.TX, rx=None, baudrate=115200)\n\n num_pixies = 2 # Change this to the number of Pixies LEDs you have.\n pixies = adafruit_pixie.Pixie(uart, num_pixies, brightness=0.2, auto_write=False)\n\n\n def wheel(pos):\n # Input a value 0 to 255 to get a color value.\n # The colours are a transition r - g - b - back to r.\n if pos < 0 or pos > 255:\n return 0, 0, 0\n if pos < 85:\n return int(255 - pos * 3), int(pos * 3), 0\n if pos < 170:\n pos -= 85\n return 0, int(255 - pos * 3), int(pos * 3)\n pos -= 170\n return int(pos * 3), 0, int(255 - (pos * 3))\n\n\n while True:\n for i in range(255):\n for pixie in range(num_pixies):\n pixies[pixie] = wheel(i)\n pixies.show()\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-pixie --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_Pixie", "keywords": "adafruit pixie smart led breakout hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-pixie", "package_url": "https://pypi.org/project/adafruit-circuitpython-pixie/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-pixie/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_Pixie" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-pixie/1.1.5/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for Pixie chainable 3W smart LED.", "version": "1.1.5" }, "last_serial": 5978993, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "7e90d61a36a5c67b39f55486faa1584c", "sha256": "b2519849429f7915505272f830afce618e35ed51f096272823d973bd71b3732c" }, "downloads": -1, "filename": "adafruit-circuitpython-pixie-1.1.0.tar.gz", "has_sig": false, "md5_digest": "7e90d61a36a5c67b39f55486faa1584c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20410, "upload_time": "2018-08-07T23:39:04", "url": "https://files.pythonhosted.org/packages/08/89/df5a863851582549b76ef6656af0bfe8aa61b1818572502d9c552fc6de8f/adafruit-circuitpython-pixie-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "88f79bbc3c34f610001d0df165fc87a9", "sha256": "99956901b7faaa21dd4e946817c26592cf51237188961c5f22225fd27626a204" }, "downloads": -1, "filename": "adafruit-circuitpython-pixie-1.1.1.tar.gz", "has_sig": false, "md5_digest": "88f79bbc3c34f610001d0df165fc87a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20406, "upload_time": "2018-11-12T17:39:12", "url": "https://files.pythonhosted.org/packages/1e/5a/193969b5388015948d9e10718ae386c857bdfdbc63e5a84e43591d06e768/adafruit-circuitpython-pixie-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "94674ffb3af4d9345cbc2142e75ddbc1", "sha256": "67c77a7d3ee1f7084439147ea333b412b1fd7017863edd379cd28076c0719e26" }, "downloads": -1, "filename": "adafruit-circuitpython-pixie-1.1.2.tar.gz", "has_sig": false, "md5_digest": "94674ffb3af4d9345cbc2142e75ddbc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19453, "upload_time": "2019-01-15T03:10:21", "url": "https://files.pythonhosted.org/packages/93/6d/d7514dbb04f68fcf655a1e3bb420fae9e9980da82d8b335bc8d17cad5f27/adafruit-circuitpython-pixie-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "e049e415bebded8797714298df27b506", "sha256": "abf6d4358a9f5a0cd04690d4648ae3935d8e5762eabe9503974fb4fbff00f37e" }, "downloads": -1, "filename": "adafruit-circuitpython-pixie-1.1.3.tar.gz", "has_sig": false, "md5_digest": "e049e415bebded8797714298df27b506", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19798, "upload_time": "2019-10-12T00:20:03", "url": "https://files.pythonhosted.org/packages/ee/66/825d5aa8476ffc3214abeb9a6d5a8fe7e17cba8aaa12df06481768444ceb/adafruit-circuitpython-pixie-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "37bfe624725719b594a87466d702db82", "sha256": "c6fefeded572228401649b4eb75f25cecccada617599204e614bc22c1782c554" }, "downloads": -1, "filename": "adafruit-circuitpython-pixie-1.1.4.tar.gz", "has_sig": false, "md5_digest": "37bfe624725719b594a87466d702db82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19806, "upload_time": "2019-10-15T17:53:20", "url": "https://files.pythonhosted.org/packages/d5/b0/405170edf0470bbec17348a0da407ecdddff153e1fef0e89c48224848f4f/adafruit-circuitpython-pixie-1.1.4.tar.gz" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "cdbdfae8ef22361ff86efc9e9bf78370", "sha256": "51c793ac965431398ef9a20c7afc7d22ee24cc5a60da4e005fb072ecde2a3d63" }, "downloads": -1, "filename": "adafruit-circuitpython-pixie-1.1.5.tar.gz", "has_sig": false, "md5_digest": "cdbdfae8ef22361ff86efc9e9bf78370", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19878, "upload_time": "2019-10-15T19:08:50", "url": "https://files.pythonhosted.org/packages/37/a2/b6021905e4b240152504d8027467da836a2e9757bc0715126893fe2d1fda/adafruit-circuitpython-pixie-1.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cdbdfae8ef22361ff86efc9e9bf78370", "sha256": "51c793ac965431398ef9a20c7afc7d22ee24cc5a60da4e005fb072ecde2a3d63" }, "downloads": -1, "filename": "adafruit-circuitpython-pixie-1.1.5.tar.gz", "has_sig": false, "md5_digest": "cdbdfae8ef22361ff86efc9e9bf78370", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19878, "upload_time": "2019-10-15T19:08:50", "url": "https://files.pythonhosted.org/packages/37/a2/b6021905e4b240152504d8027467da836a2e9757bc0715126893fe2d1fda/adafruit-circuitpython-pixie-1.1.5.tar.gz" } ] }