adafruit-circuitpython-bme680


Nameadafruit-circuitpython-bme680 JSON
Version 3.7.10 PyPI version JSON
download
home_pageNone
SummaryCircuitPython driver for BME680 sensor over I2C
upload_time2024-11-12 20:55:09
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit blinka circuitpython micropython bme680 hardware temperature pressure humidity gas
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-bme680/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/bme680/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_BME680/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_BME680/actions/
    :alt: Build Status

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Code Style: Ruff

CircuitPython driver for BME680 sensor over I2C

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-bme680/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-bme680

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

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-bme680

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-bme680

Usage Example
=============

.. code-block:: python3

    import adafruit_bme680
    import time
    import board

    # Create sensor object, communicating over the board's default I2C bus
    i2c = board.I2C()   # uses board.SCL and board.SDA
    bme680 = adafruit_bme680.Adafruit_BME680_I2C(i2c)

    # change this to match the location's pressure (hPa) at sea level
    bme680.sea_level_pressure = 1013.25

    while True:
        print("\nTemperature: %0.1f C" % bme680.temperature)
        print("Gas: %d ohm" % bme680.gas)
        print("Humidity: %0.1f %%" % bme680.relative_humidity)
        print("Pressure: %0.3f hPa" % bme680.pressure)
        print("Altitude = %0.2f meters" % bme680.altitude)

        time.sleep(2)


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

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/bme680/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_bme680/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "adafruit-circuitpython-bme680",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, blinka, circuitpython, micropython, bme680, hardware, temperature, pressure, humidity, gas",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/8c/fa/24c73819f488f0e93b0a3604d8968c81b57cafe00467409239c355808edd/adafruit_circuitpython_bme680-3.7.10.tar.gz",
    "platform": null,
    "description": "\nIntroduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-bme680/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/bme680/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_BME680/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_BME680/actions/\n    :alt: Build Status\n\n.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n    :target: https://github.com/astral-sh/ruff\n    :alt: Code Style: Ruff\n\nCircuitPython driver for BME680 sensor over I2C\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=====================\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-bme680/>`_. To install for current user:\n\n.. code-block:: shell\n\n    pip3 install adafruit-circuitpython-bme680\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n    sudo pip3 install adafruit-circuitpython-bme680\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-bme680\n\nUsage Example\n=============\n\n.. code-block:: python3\n\n    import adafruit_bme680\n    import time\n    import board\n\n    # Create sensor object, communicating over the board's default I2C bus\n    i2c = board.I2C()   # uses board.SCL and board.SDA\n    bme680 = adafruit_bme680.Adafruit_BME680_I2C(i2c)\n\n    # change this to match the location's pressure (hPa) at sea level\n    bme680.sea_level_pressure = 1013.25\n\n    while True:\n        print(\"\\nTemperature: %0.1f C\" % bme680.temperature)\n        print(\"Gas: %d ohm\" % bme680.gas)\n        print(\"Humidity: %0.1f %%\" % bme680.relative_humidity)\n        print(\"Pressure: %0.3f hPa\" % bme680.pressure)\n        print(\"Altitude = %0.2f meters\" % bme680.altitude)\n\n        time.sleep(2)\n\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/bme680/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_bme680/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CircuitPython driver for BME680 sensor over I2C",
    "version": "3.7.10",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_BME680"
    },
    "split_keywords": [
        "adafruit",
        " blinka",
        " circuitpython",
        " micropython",
        " bme680",
        " hardware",
        " temperature",
        " pressure",
        " humidity",
        " gas"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2692501bb43227feb25ecf11a1843309ea17bf963f58ca5ef0400de850b81ce2",
                "md5": "5ea477505c17e36f313c73187c94aff9",
                "sha256": "2b16f5e200d0265f9f467e43389307775dae37249e07e97032e98e8e2dcae6f4"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_bme680-3.7.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5ea477505c17e36f313c73187c94aff9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10626,
            "upload_time": "2024-11-12T20:55:07",
            "upload_time_iso_8601": "2024-11-12T20:55:07.824355Z",
            "url": "https://files.pythonhosted.org/packages/26/92/501bb43227feb25ecf11a1843309ea17bf963f58ca5ef0400de850b81ce2/adafruit_circuitpython_bme680-3.7.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8cfa24c73819f488f0e93b0a3604d8968c81b57cafe00467409239c355808edd",
                "md5": "911a7556e5a3a347182229abc4671334",
                "sha256": "77dce0b6d8a6c11122ea63ca5482cf8793e45848ad8fb4376c7a506956fa1811"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_bme680-3.7.10.tar.gz",
            "has_sig": false,
            "md5_digest": "911a7556e5a3a347182229abc4671334",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 30800,
            "upload_time": "2024-11-12T20:55:09",
            "upload_time_iso_8601": "2024-11-12T20:55:09.510838Z",
            "url": "https://files.pythonhosted.org/packages/8c/fa/24c73819f488f0e93b0a3604d8968c81b57cafe00467409239c355808edd/adafruit_circuitpython_bme680-3.7.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-12 20:55:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_BME680",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-bme680"
}
        
Elapsed time: 0.40001s