{ "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-ads1x15/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/ads1x15/en/latest/\n :alt: Documentation Status\n\n.. image :: https://img.shields.io/discord/327254708534116352.svg\n :target: https://adafru.it/discord\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_ADS1x15.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_ADS1x15\n :alt: Build Status\n\nSupport for the ADS1x15 series of analog-to-digital converters. Available in 12-bit (ADS1015)\nand 16-bit (ADS1115) versions.\n\nInstallation & Dependencies\n===========================\n\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n* `Bus Device `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis can be most easily achieved by downloading and installing\n`the Adafruit library and driver bundle `_ on\nyour device.\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-ads1x15\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-ads1x15\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-ads1x15\n\nUsage Example\n=============\n\nSingle Ended\n------------\n\n.. code-block:: python\n\n import time\n import board\n import busio\n import adafruit_ads1x15.ads1015 as ADS\n from adafruit_ads1x15.analog_in import AnalogIn\n\n # Create the I2C bus\n i2c = busio.I2C(board.SCL, board.SDA)\n\n # Create the ADC object using the I2C bus\n ads = ADS.ADS1015(i2c)\n\n # Create single-ended input on channel 0\n chan = AnalogIn(ads, ADS.P0)\n\n # Create differential input between channel 0 and 1\n #chan = AnalogIn(ads, ADS.P0, ADS.P1)\n\n print(\"{:>5}\\t{:>5}\".format('raw', 'v'))\n\n while True:\n print(\"{:>5}\\t{:>5.3f}\".format(chan.value, chan.voltage))\n time.sleep(0.5)\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\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-ads1x15 --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_ADS1x15", "keywords": "adafruit ads1x115 adc hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-ads1x15", "package_url": "https://pypi.org/project/adafruit-circuitpython-ads1x15/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-ads1x15/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-ads1x15/2.1.1/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for controlling an ADS1x15 ADC.", "version": "2.1.1" }, "last_serial": 5717721, "releases": { "0.3.1": [ { "comment_text": "", "digests": { "md5": "374648922a5fc6a5e337bd0c301b4635", "sha256": "97ecc791a34f5099485642b155fd6dfb9ad07512c22941aaf67c38b163718ac9" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-0.3.1.tar.gz", "has_sig": false, "md5_digest": "374648922a5fc6a5e337bd0c301b4635", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21922, "upload_time": "2018-07-02T23:02:53", "url": "https://files.pythonhosted.org/packages/7b/d2/49d19867c01c0cfba3f952f8f90d3ad3ea354e0d3b010183c9b6501e3610/adafruit-circuitpython-ads1x15-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "1424fd290a685d58b42bf79cf89065a0", "sha256": "ad1e2db4453850fc33bf6adfcda1d1d6075402c449acc01a9d9a07ac3ae0aa1a" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-0.4.0.tar.gz", "has_sig": false, "md5_digest": "1424fd290a685d58b42bf79cf89065a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21989, "upload_time": "2018-07-10T20:48:13", "url": "https://files.pythonhosted.org/packages/b7/a4/afc8a046d836dcbf0e53e6d062d576a6fd30ef20e19e0bc3eccf5ef16ae2/adafruit-circuitpython-ads1x15-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "2e11bf667d9c720fa7db820edff1c7fb", "sha256": "4a341523af2781c865d4358237a82e1c5cf38cb345dd6cdc50fab132b3f6b7a7" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-0.5.0.tar.gz", "has_sig": false, "md5_digest": "2e11bf667d9c720fa7db820edff1c7fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21995, "upload_time": "2018-08-02T20:15:06", "url": "https://files.pythonhosted.org/packages/43/54/f45a08f75791b1a5e35da2f827982b6fb57297c9c076b1c056c2679d991f/adafruit-circuitpython-ads1x15-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "3e9a15d32bf641d02f615cca4ccf3bc8", "sha256": "8f5f386f1c8744e4d7bfff4c0d5ad73fe43aa5db63b9c37d4507999a8770eb40" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-0.5.1.tar.gz", "has_sig": false, "md5_digest": "3e9a15d32bf641d02f615cca4ccf3bc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22002, "upload_time": "2018-08-02T20:50:00", "url": "https://files.pythonhosted.org/packages/e2/d3/cc4467a9c5d96547a2af6a533f5261f45d46cd5fbf4e9d90979ef3b53784/adafruit-circuitpython-ads1x15-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "ddeaf7cb05b3eda1f5c4079cf4a3f925", "sha256": "f67e8c34c713f892d18424c6026c7b210441c708bcb7093979bfa71493190228" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-0.5.2.tar.gz", "has_sig": false, "md5_digest": "ddeaf7cb05b3eda1f5c4079cf4a3f925", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22328, "upload_time": "2018-10-04T16:54:26", "url": "https://files.pythonhosted.org/packages/24/5b/4200c9cfcdfe0400c9047698d3d553a790df3da8fe0c087829c9b4ea63f5/adafruit-circuitpython-ads1x15-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "a314eac204552cfcae4d617a5b78561d", "sha256": "65499549e9f64a548837633ff3d3cd17ae744bd1dac3e23d1ed8c1bc271e1cae" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-0.5.3.tar.gz", "has_sig": false, "md5_digest": "a314eac204552cfcae4d617a5b78561d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22420, "upload_time": "2018-11-12T22:12:33", "url": "https://files.pythonhosted.org/packages/a1/21/613812f61194a79549826ef0f1cc330caccdef35010f9171c462e8744c96/adafruit-circuitpython-ads1x15-0.5.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "8950482cbac708c7da043b4b1bb990a0", "sha256": "489dd35fb253d0535bac20e1277678ce4f95fb6086ab9cbf7945bbf113969ff8" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-1.0.0.tar.gz", "has_sig": false, "md5_digest": "8950482cbac708c7da043b4b1bb990a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21467, "upload_time": "2018-12-03T23:02:24", "url": "https://files.pythonhosted.org/packages/67/0a/73fd913c721e5763b5fcc2ece9741cbc3adef9bb4aa35ea78038988680bb/adafruit-circuitpython-ads1x15-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "43fd9a32d5dff3d80dd1eb540abd01e0", "sha256": "5ec50c49153229ef64b69830d1bca9c3ba103893368344111902d9c9f3853fcd" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-1.0.1.tar.gz", "has_sig": false, "md5_digest": "43fd9a32d5dff3d80dd1eb540abd01e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21145, "upload_time": "2019-01-16T02:36:51", "url": "https://files.pythonhosted.org/packages/4e/2b/46ace03c4b3d6705bff8b20985593af19262e806680efa4734ad1d2330ed/adafruit-circuitpython-ads1x15-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "688b8be2ac1eea9785ac56c440107752", "sha256": "44c89d2cdcc65cd88c56e7dda7c6015b8873157c55c5847877883f2c4ebd84bb" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-1.0.2.tar.gz", "has_sig": false, "md5_digest": "688b8be2ac1eea9785ac56c440107752", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21577, "upload_time": "2019-02-06T01:15:56", "url": "https://files.pythonhosted.org/packages/67/2b/b868cfc3795c6f87a028a5ba341b683932e24452a08d033a6625b495a2f4/adafruit-circuitpython-ads1x15-1.0.2.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "e21e5f18e483562fc01ee32515049761", "sha256": "da45b5c585440bab15c08f47b5ff1728c3e75c982966b908b9d189f6c4723383" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-2.0.0.tar.gz", "has_sig": false, "md5_digest": "e21e5f18e483562fc01ee32515049761", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21601, "upload_time": "2019-05-09T23:45:21", "url": "https://files.pythonhosted.org/packages/56/d4/e2a46a49edb4b6b952cf121f6774f6354c7d3cff4dc02d02f51d6f10c22d/adafruit-circuitpython-ads1x15-2.0.0.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "34ce0b4bd6246b2926d2a21718f14868", "sha256": "d5e618a52cd6d838d9aefe6a93f96814f8cf9872003b0f064041fa358630ba9e" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-2.1.0.tar.gz", "has_sig": false, "md5_digest": "34ce0b4bd6246b2926d2a21718f14868", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22023, "upload_time": "2019-06-06T16:50:33", "url": "https://files.pythonhosted.org/packages/8a/31/b199e6a68603645cf3af464383884dbad110da538e639d69ffce07505055/adafruit-circuitpython-ads1x15-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "0715fe77bc4e76bd8beea5714afd88d1", "sha256": "40b88dafd089f90bf8b802a8580b8f587a4587fe28fe7ac6362fb319e2152ceb" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-2.1.1.tar.gz", "has_sig": false, "md5_digest": "0715fe77bc4e76bd8beea5714afd88d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22009, "upload_time": "2019-08-22T22:44:03", "url": "https://files.pythonhosted.org/packages/72/c5/686ce1daeda808063d3e2f722bf559bddf1f6e5b4147488263f9f672d6a0/adafruit-circuitpython-ads1x15-2.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0715fe77bc4e76bd8beea5714afd88d1", "sha256": "40b88dafd089f90bf8b802a8580b8f587a4587fe28fe7ac6362fb319e2152ceb" }, "downloads": -1, "filename": "adafruit-circuitpython-ads1x15-2.1.1.tar.gz", "has_sig": false, "md5_digest": "0715fe77bc4e76bd8beea5714afd88d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22009, "upload_time": "2019-08-22T22:44:03", "url": "https://files.pythonhosted.org/packages/72/c5/686ce1daeda808063d3e2f722bf559bddf1f6e5b4147488263f9f672d6a0/adafruit-circuitpython-ads1x15-2.1.1.tar.gz" } ] }