{ "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\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-mcp9808/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/mcp9808/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_MCP9808.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_MCP9808\n :alt: Build Status\n\nThe MCP9808 is an awesome, high accuracy temperature sensor that communicates\nover I2C. Its available on `Adafruit as a breakout `_.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\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 Notes\n===========\n\nGetting the temperature in Celsius is easy! First, import all of the pins from\nthe board, busio for native I2C communication and the thermometer library\nitself.\n\n.. code-block:: python\n\n from board import *\n import busio\n import adafruit_mcp9808\n\nNext, initialize the I2C bus in a with statement so it always gets shut down ok.\nThen, construct the thermometer class:\n\n.. code-block:: python\n\n # Do one reading\n with busio.I2C(SCL, SDA) as i2c:\n t = adafruit_mcp9808.MCP9808(i2c)\n\n # Finally, read the temperature property and print it out\n print(t.temperature)\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-mcp9808 --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_MCP9808", "keywords": "adafruit temperature sensor mcp9808 breakout hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-mcp9808", "package_url": "https://pypi.org/project/adafruit-circuitpython-mcp9808/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-mcp9808/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_MCP9808" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-mcp9808/3.2.3/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for MCP9808 high accuracy temperature sensor.", "version": "3.2.3" }, "last_serial": 5720165, "releases": { "3.2.0": [ { "comment_text": "", "digests": { "md5": "5b04d0e6e30841168aaed189bbc3b80d", "sha256": "e7471ff9bd6c6d208eda718ee357d4068402ea2d7ed6b8622ad247f887fd97d6" }, "downloads": -1, "filename": "adafruit-circuitpython-mcp9808-3.2.0.tar.gz", "has_sig": false, "md5_digest": "5b04d0e6e30841168aaed189bbc3b80d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19822, "upload_time": "2018-08-06T21:35:15", "url": "https://files.pythonhosted.org/packages/65/2d/915e30de4e9301c681e3f4455a091ad0a6cbe76b8f606503cd313a96cfc2/adafruit-circuitpython-mcp9808-3.2.0.tar.gz" } ], "3.2.1": [ { "comment_text": "", "digests": { "md5": "21ee12ed98a3761ee5b7256ad887d712", "sha256": "dc3226e51f3486a0937b5e222b369ee9cc27dbc58369a6a144627c10f80fcd6a" }, "downloads": -1, "filename": "adafruit-circuitpython-mcp9808-3.2.1.tar.gz", "has_sig": false, "md5_digest": "21ee12ed98a3761ee5b7256ad887d712", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19824, "upload_time": "2018-11-12T17:29:12", "url": "https://files.pythonhosted.org/packages/03/ef/f601a40a9ab3d2bcb99c782aa737aea104c89e876a0058789012acd91252/adafruit-circuitpython-mcp9808-3.2.1.tar.gz" } ], "3.2.2": [ { "comment_text": "", "digests": { "md5": "ea9d75422ff203015891496f2b1bf7bf", "sha256": "5417ae070570640b65d8fb47d7f91de73454e4704bbd47ab840d923dc0e84cfa" }, "downloads": -1, "filename": "adafruit-circuitpython-mcp9808-3.2.2.tar.gz", "has_sig": false, "md5_digest": "ea9d75422ff203015891496f2b1bf7bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18433, "upload_time": "2019-01-15T02:48:43", "url": "https://files.pythonhosted.org/packages/dc/b0/a3dc6e76b3b3198d8d29c680d88cc40e83d6b989d014f4404c712b378209/adafruit-circuitpython-mcp9808-3.2.2.tar.gz" } ], "3.2.3": [ { "comment_text": "", "digests": { "md5": "8c3af215c8221f0a5a15ad7182b24f6b", "sha256": "9925352af65587305b24a88921e2098dff22bdfb204302d109fde2b764b79ded" }, "downloads": -1, "filename": "adafruit-circuitpython-mcp9808-3.2.3.tar.gz", "has_sig": false, "md5_digest": "8c3af215c8221f0a5a15ad7182b24f6b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18433, "upload_time": "2019-08-23T11:08:37", "url": "https://files.pythonhosted.org/packages/a5/94/a2fe5990323ef91bffe518199368a863ebb293040f70afd747a83cca7260/adafruit-circuitpython-mcp9808-3.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8c3af215c8221f0a5a15ad7182b24f6b", "sha256": "9925352af65587305b24a88921e2098dff22bdfb204302d109fde2b764b79ded" }, "downloads": -1, "filename": "adafruit-circuitpython-mcp9808-3.2.3.tar.gz", "has_sig": false, "md5_digest": "8c3af215c8221f0a5a15ad7182b24f6b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18433, "upload_time": "2019-08-23T11:08:37", "url": "https://files.pythonhosted.org/packages/a5/94/a2fe5990323ef91bffe518199368a863ebb293040f70afd747a83cca7260/adafruit-circuitpython-mcp9808-3.2.3.tar.gz" } ] }