{ "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-ds3502/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/ds3502/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_DS3502.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_DS3502\n :alt: Build Status\n\nCircuitPython library for the Maxim DS3502 I2C Potentionmeter\n\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-ds3502\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-ds3502\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-ds3502\n\nUsage Example\n=============\n\n.. code-block:: python\n\n from time import sleep\n import board\n import adafruit_ds3502\n from analogio import AnalogIn\n\n ####### NOTE ################\n # this example will not work with Blinka/rasberry Pi due to the lack of analog pins.\n # Blinka and Raspberry Pi users should run the \"ds3502_blinka_simpletest.py\" example\n\n i2c = board.I2C()\n ds3502 = adafruit_ds3502.DS3502(i2c)\n wiper_output = AnalogIn(board.A0)\n\n while True:\n\n ds3502.wiper = 127\n print(\"Wiper set to %d\"%ds3502.wiper)\n voltage = wiper_output.value\n voltage *= 3.3\n voltage /= 65535\n print(\"Wiper voltage: %.2f\"%voltage)\n print(\"\")\n sleep(1.0)\n \n ds3502.wiper = 0\n print(\"Wiper set to %d\"%ds3502.wiper)\n voltage = wiper_output.value\n voltage *= 3.3\n voltage /= 65535\n print(\"Wiper voltage: %.2f\"%voltage)\n print(\"\")\n sleep(1.0)\n\n ds3502.wiper = 63\n print(\"Wiper set to %d\"%ds3502.wiper)\n voltage = wiper_output.value\n voltage *= 3.3\n voltage /= 65535\n print(\"Wiper voltage: %.2f\"%voltage)\n print(\"\")\n sleep(1.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-ds3502 --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_DS3502", "keywords": "adafruit blinka circuitpython micropython ds3502 potentiometer pot resistance", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-ds3502", "package_url": "https://pypi.org/project/adafruit-circuitpython-ds3502/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-ds3502/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_DS3502" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-ds3502/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for the Maxim DS3502 I2C Potentionmeter", "version": "1.0.2" }, "last_serial": 5678950, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "bdcdc81796d52c7b1d439b7f160cd4e0", "sha256": "47d69229ae270c325bf44eb82b1e3ab9651fc9ce96d23651144b5fdb3016d406" }, "downloads": -1, "filename": "adafruit-circuitpython-ds3502-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bdcdc81796d52c7b1d439b7f160cd4e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19299, "upload_time": "2019-06-07T02:26:33", "url": "https://files.pythonhosted.org/packages/3f/aa/076f664ff2d0ac327db79deec0dd71c76f926af7563a9b34b93b000eb65e/adafruit-circuitpython-ds3502-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "66094bb1b68ef1396b77ab85fdff8492", "sha256": "48ebd6553086ea43442c8c2f3e2a5320440ea25eb0867283dc5ae7f0abd94eb3" }, "downloads": -1, "filename": "adafruit-circuitpython-ds3502-1.0.1.tar.gz", "has_sig": false, "md5_digest": "66094bb1b68ef1396b77ab85fdff8492", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20101, "upload_time": "2019-06-07T23:28:04", "url": "https://files.pythonhosted.org/packages/fb/0e/86c91ac0e616addb7463bd1d23e1712ec7daad9890f4dcfa70e41972b190/adafruit-circuitpython-ds3502-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "40ff2540b5f08558d58d2c309ec03087", "sha256": "736de5edc3d9413d7e38fc94cf9778aca4cb228ffb52258238a3a7b3b0a9b867" }, "downloads": -1, "filename": "adafruit-circuitpython-ds3502-1.0.2.tar.gz", "has_sig": false, "md5_digest": "40ff2540b5f08558d58d2c309ec03087", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20143, "upload_time": "2019-08-14T19:47:03", "url": "https://files.pythonhosted.org/packages/1d/78/e69d324588ce85db28ac02f0dc77ae0f9ba807d68b7f6c376a5e13a176bb/adafruit-circuitpython-ds3502-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "40ff2540b5f08558d58d2c309ec03087", "sha256": "736de5edc3d9413d7e38fc94cf9778aca4cb228ffb52258238a3a7b3b0a9b867" }, "downloads": -1, "filename": "adafruit-circuitpython-ds3502-1.0.2.tar.gz", "has_sig": false, "md5_digest": "40ff2540b5f08558d58d2c309ec03087", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20143, "upload_time": "2019-08-14T19:47:03", "url": "https://files.pythonhosted.org/packages/1d/78/e69d324588ce85db28ac02f0dc77ae0f9ba807d68b7f6c376a5e13a176bb/adafruit-circuitpython-ds3502-1.0.2.tar.gz" } ] }