adafruit-circuitpython-bme680


Nameadafruit-circuitpython-bme680 JSON
Version 3.7.4 PyPI version JSON
download
home_page
SummaryCircuitPython driver for BME680 sensor over I2C
upload_time2023-12-23 16:47:33
maintainer
docs_urlNone
author
requires_python
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/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style: Black

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": "",
    "name": "adafruit-circuitpython-bme680",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "adafruit,blinka,circuitpython,micropython,bme680,hardware,temperature,pressure,humidity,gas",
    "author": "",
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/8a/1a/d9569c872313be4eb34afb8cbf1a5b73a1fd52dc2c212a31c2a2b3ff26be/adafruit-circuitpython-bme680-3.7.4.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/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code Style: Black\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.4",
    "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": "aecaaa57c346c373e0ac87403be93493cae151504d384e17d0b4f468505be2fd",
                "md5": "07c043f97a9a03c3398bed729ffdffc5",
                "sha256": "3fd7b8cd81489004d82faf6f2c5691bc87a27f201a1352ac55cb7fae840cb73d"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_bme680-3.7.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "07c043f97a9a03c3398bed729ffdffc5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10688,
            "upload_time": "2023-12-23T16:47:31",
            "upload_time_iso_8601": "2023-12-23T16:47:31.609599Z",
            "url": "https://files.pythonhosted.org/packages/ae/ca/aa57c346c373e0ac87403be93493cae151504d384e17d0b4f468505be2fd/adafruit_circuitpython_bme680-3.7.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a1ad9569c872313be4eb34afb8cbf1a5b73a1fd52dc2c212a31c2a2b3ff26be",
                "md5": "4e2993feb85c37b5b02df675a7d948db",
                "sha256": "5ec6ae21e7766dd9f056b4bb48260460abb43cd2b3d852b6d7ac42d210801810"
            },
            "downloads": -1,
            "filename": "adafruit-circuitpython-bme680-3.7.4.tar.gz",
            "has_sig": false,
            "md5_digest": "4e2993feb85c37b5b02df675a7d948db",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 33601,
            "upload_time": "2023-12-23T16:47:33",
            "upload_time_iso_8601": "2023-12-23T16:47:33.371900Z",
            "url": "https://files.pythonhosted.org/packages/8a/1a/d9569c872313be4eb34afb8cbf1a5b73a1fd52dc2c212a31c2a2b3ff26be/adafruit-circuitpython-bme680-3.7.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-23 16:47:33",
    "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.19414s