adafruit-circuitpython-mcp9808


Nameadafruit-circuitpython-mcp9808 JSON
Version 3.3.26 PyPI version JSON
download
home_pageNone
SummaryCircuitPython library for MCP9808 high accuracy temperature sensor.
upload_time2025-01-22 16:28:05
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit temperature sensor mcp9808 breakout hardware micropython circuitpython
VCS
bugtrack_url
requirements Adafruit-Blinka adafruit-circuitpython-register adafruit-circuitpython-busdevice typing-extensions
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
Introduction
============


.. image:: https://readthedocs.org/projects/adafruit-circuitpython-mcp9808/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/mcp9808/en/latest/
    :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_MCP9808/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_MCP9808/actions/
    :alt: Build Status

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style: Black

The MCP9808 is an awesome, high accuracy temperature sensor that communicates
over I2C. Its available on `Adafruit as a breakout <https://www.adafruit.com/products/1782>`_.

Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.

Installing from PyPI
====================

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-mcp9808/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-mcp9808

To install system-wide (this may be required in some cases):

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-mcp9808

To install in a virtual environment in your current project:

.. code-block:: shell

    mkdir project-name && cd project-name
    python3 -m venv .venv
    source .venv/bin/activate
    pip3 install adafruit-circuitpython-mcp9808

Usage Notes
===========

Getting the temperature in Celsius is easy! First, import all of the pins from
the board, board.I2C() for native I2C communication and the thermometer library
itself.

.. code-block:: python3

  import board
  import adafruit_mcp9808

Next, initialize the I2C bus in a with statement so it always gets shut down ok.
Then, construct the thermometer class:

.. code-block:: python3

  # Do one reading
  with board.I2C() as i2c:
      t = adafruit_mcp9808.MCP9808(i2c)

      # Finally, read the temperature property and print it out
      print(t.temperature)

Documentation
=============

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/mcp9808/en/latest/>`_.

For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_MCP9808/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "adafruit-circuitpython-mcp9808",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, temperature, sensor, mcp9808, breakout, hardware, micropython, circuitpython",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/64/f2/9a0c0f9fa20ed4cd0207592b26d93933ebed6e88be531fa882f26d75ac1b/adafruit_circuitpython_mcp9808-3.3.26.tar.gz",
    "platform": null,
    "description": "\nIntroduction\n============\n\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-mcp9808/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/mcp9808/en/latest/\n    :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n    :target: https://adafru.it/discord\n    :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_MCP9808/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_MCP9808/actions/\n    :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code Style: Black\n\nThe MCP9808 is an awesome, high accuracy temperature sensor that communicates\nover I2C. Its available on `Adafruit as a breakout <https://www.adafruit.com/products/1782>`_.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.\n\nInstalling from PyPI\n====================\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-mcp9808/>`_. To install for current user:\n\n.. code-block:: shell\n\n    pip3 install adafruit-circuitpython-mcp9808\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n    sudo pip3 install adafruit-circuitpython-mcp9808\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 .venv\n    source .venv/bin/activate\n    pip3 install adafruit-circuitpython-mcp9808\n\nUsage Notes\n===========\n\nGetting the temperature in Celsius is easy! First, import all of the pins from\nthe board, board.I2C() for native I2C communication and the thermometer library\nitself.\n\n.. code-block:: python3\n\n  import board\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:: python3\n\n  # Do one reading\n  with board.I2C() as i2c:\n      t = adafruit_mcp9808.MCP9808(i2c)\n\n      # Finally, read the temperature property and print it out\n      print(t.temperature)\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/mcp9808/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_MCP9808/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CircuitPython library for MCP9808 high accuracy temperature sensor.",
    "version": "3.3.26",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_MCP9808"
    },
    "split_keywords": [
        "adafruit",
        " temperature",
        " sensor",
        " mcp9808",
        " breakout",
        " hardware",
        " micropython",
        " circuitpython"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1aa38836d1a858236f6e6a10e98de959cf6d0637e46131e988a6678b48be0320",
                "md5": "459322e610f049d8dbd06a68f41967d7",
                "sha256": "64eab15b902de65ec7a593a3bbbb6755454f166ab0b63d8853185793c02fbdc8"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_mcp9808-3.3.26-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "459322e610f049d8dbd06a68f41967d7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6262,
            "upload_time": "2025-01-22T16:28:03",
            "upload_time_iso_8601": "2025-01-22T16:28:03.590037Z",
            "url": "https://files.pythonhosted.org/packages/1a/a3/8836d1a858236f6e6a10e98de959cf6d0637e46131e988a6678b48be0320/adafruit_circuitpython_mcp9808-3.3.26-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "64f29a0c0f9fa20ed4cd0207592b26d93933ebed6e88be531fa882f26d75ac1b",
                "md5": "733d9217f25689c17549b4bb3e494bc7",
                "sha256": "b4aa06b38b2e1608af4b2685d6b76dc2fe44e2456ba49392ac3314b0eb580a9a"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_mcp9808-3.3.26.tar.gz",
            "has_sig": false,
            "md5_digest": "733d9217f25689c17549b4bb3e494bc7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28874,
            "upload_time": "2025-01-22T16:28:05",
            "upload_time_iso_8601": "2025-01-22T16:28:05.465734Z",
            "url": "https://files.pythonhosted.org/packages/64/f2/9a0c0f9fa20ed4cd0207592b26d93933ebed6e88be531fa882f26d75ac1b/adafruit_circuitpython_mcp9808-3.3.26.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-22 16:28:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_MCP9808",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "Adafruit-Blinka",
            "specs": []
        },
        {
            "name": "adafruit-circuitpython-register",
            "specs": []
        },
        {
            "name": "adafruit-circuitpython-busdevice",
            "specs": []
        },
        {
            "name": "typing-extensions",
            "specs": [
                [
                    "~=",
                    "4.0"
                ]
            ]
        }
    ],
    "lcname": "adafruit-circuitpython-mcp9808"
}
        
Elapsed time: 0.85249s