{ "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-servokit/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/servokit/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_ServoKit.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_ServoKit\n :alt: Build Status\n\nCircuitPython helper library for the PWM/Servo FeatherWing, Shield and Pi HAT and Bonnet kits.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n* `Bus Device `_\n* `Register `_\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-servokit\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-servokit\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-servokit\n\nUsage Example\n=============\n\n.. code-block:: python\n\n import time\n from adafruit_servokit import ServoKit\n\n # Set channels to the number of servo channels on your kit.\n # 8 for FeatherWing, 16 for Shield/HAT/Bonnet.\n kit = ServoKit(channels=8)\n\n kit.servo[0].angle = 180\n kit.continuous_servo[1].throttle = 1\n time.sleep(1)\n kit.continuous_servo[1].throttle = -1\n time.sleep(1)\n kit.servo[0].angle = 0\n kit.continuous_servo[1].throttle = 0\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-servokit --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_ServoKit", "keywords": "adafruit servo motor pwm pca9685 featherwing pi shield bonnet servokit kit i2c hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-servokit", "package_url": "https://pypi.org/project/adafruit-circuitpython-servokit/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-servokit/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_ServoKit" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-servokit/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython helper library for PWM/Servo FeatherWing, Shield, and Pi HAT and Bonnet kits.", "version": "1.1.0" }, "last_serial": 4960537, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "98eafad1e4743b1de0c8542510089b4b", "sha256": "5f4c18300b2bf6ab208c97c6caefbacbd34bf20806b40996f8b5e28a7d8f7dfa" }, "downloads": -1, "filename": "adafruit-circuitpython-servokit-1.0.1.tar.gz", "has_sig": false, "md5_digest": "98eafad1e4743b1de0c8542510089b4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19479, "upload_time": "2018-12-19T23:20:29", "url": "https://files.pythonhosted.org/packages/a1/4b/bf7712ef927b91703302ccf7fa3e75fad493bc22e15559622b82cd30e1ab/adafruit-circuitpython-servokit-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "92f96538ac424541c2770ecfa52c6dbb", "sha256": "3b28321f83d61661b6f3babcb9a01ff4efd51f264042a20db29a1afcce9a458b" }, "downloads": -1, "filename": "adafruit-circuitpython-servokit-1.0.2.tar.gz", "has_sig": false, "md5_digest": "92f96538ac424541c2770ecfa52c6dbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19480, "upload_time": "2018-12-29T00:08:59", "url": "https://files.pythonhosted.org/packages/8e/74/cc62c8a6e24fe8baba091961b16eb4c66c5f6fac655937e823b2a0f87965/adafruit-circuitpython-servokit-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "1da094dddbbc864ff43889f3a9732f4c", "sha256": "7534f74dc36f40b1de88056c0579a389577bb1264e8e7c5013d5a6f10dbca5bf" }, "downloads": -1, "filename": "adafruit-circuitpython-servokit-1.0.3.tar.gz", "has_sig": false, "md5_digest": "1da094dddbbc864ff43889f3a9732f4c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19660, "upload_time": "2019-01-15T00:26:38", "url": "https://files.pythonhosted.org/packages/a2/a1/115a3c5fca471573169fc74647a46ff91ef473bbab9f9eac6c07ab44ab5f/adafruit-circuitpython-servokit-1.0.3.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "13748b8753fb3b4142554066cc81b6af", "sha256": "c39102b473ac5a9d3ded80e788e1f1d32c89adec1535ac8e9c9d194b85afeb29" }, "downloads": -1, "filename": "adafruit-circuitpython-servokit-1.1.0.tar.gz", "has_sig": false, "md5_digest": "13748b8753fb3b4142554066cc81b6af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19658, "upload_time": "2019-03-19T19:30:58", "url": "https://files.pythonhosted.org/packages/86/2d/a8ebfc83d88f121569c950b960734d72d00d404b085899b16626be58648b/adafruit-circuitpython-servokit-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "13748b8753fb3b4142554066cc81b6af", "sha256": "c39102b473ac5a9d3ded80e788e1f1d32c89adec1535ac8e9c9d194b85afeb29" }, "downloads": -1, "filename": "adafruit-circuitpython-servokit-1.1.0.tar.gz", "has_sig": false, "md5_digest": "13748b8753fb3b4142554066cc81b6af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19658, "upload_time": "2019-03-19T19:30:58", "url": "https://files.pythonhosted.org/packages/86/2d/a8ebfc83d88f121569c950b960734d72d00d404b085899b16626be58648b/adafruit-circuitpython-servokit-1.1.0.tar.gz" } ] }