{ "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-bmp280/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/bmp280/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_BMP280.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_BMP280\n :alt: Build Status\n\nCircuitPython driver from BMP280 Temperature and Barometic Pressure sensor\n\nInstallation and 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 is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nInstalling from PyPI\n--------------------\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver\n`from PyPI `_. To install\nfor the current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-bmp280\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-bmp280\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-bmp280\n\nUsage Example\n=============\n\n.. code-block:: python\n\n import board\n import digitalio\n import busio\n import time\n from adafruit_bmp280 import adafruit_bmp280\n\n # Create library object using our Bus I2C port\n i2c = busio.I2C(board.SCL, board.SDA)\n bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c)\n\n # OR create library object using our Bus SPI port\n #spi = busio.SPI(board.SCK, board.MOSI, board.MISO)\n #bmp_cs = digitalio.DigitalInOut(board.D10)\n #bmp280 = adafruit_bmp280.Adafruit_BMP280_SPI(spi, bmp_cs)\n\n # change this to match the location's pressure (hPa) at sea level\n bmp280.seaLevelhPa = 1013.25\n\n while True:\n print(\"\\nTemperature: %0.1f C\" % bmp280.temperature)\n print(\"Pressure: %0.1f hPa\" % bmp280.pressure)\n print(\"Altitude = %0.2f meters\" % bmp280.altitude)\n time.sleep(2)\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-bmp280 --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_BMP280", "keywords": "adafruit bmp280 barometric pressure temperature hardware sensor micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-bmp280", "package_url": "https://pypi.org/project/adafruit-circuitpython-bmp280/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-bmp280/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_BMP280" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-bmp280/3.1.1/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython driver for the BMP280.", "version": "3.1.1" }, "last_serial": 5300440, "releases": { "3.0.10": [ { "comment_text": "", "digests": { "md5": "f8240238a9d0af5dc23e807dbdc04214", "sha256": "1048da9021cd5b8188b6435ddd4672b663b1e6f353dcfac3dfa4e866cb370782" }, "downloads": -1, "filename": "adafruit-circuitpython-bmp280-3.0.10.tar.gz", "has_sig": false, "md5_digest": "f8240238a9d0af5dc23e807dbdc04214", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19485, "upload_time": "2019-01-16T00:20:13", "url": "https://files.pythonhosted.org/packages/e9/c6/254be7e6198ada40e4575b3c710cc02322fc27071971a5026332744d880d/adafruit-circuitpython-bmp280-3.0.10.tar.gz" } ], "3.0.7": [ { "comment_text": "", "digests": { "md5": "522ab6d0203adc4f31060656a2c3a0a6", "sha256": "b7eceb142035d9cc20b8db636adb81b5915023f5b02a0ee2382fccbfbf366109" }, "downloads": -1, "filename": "adafruit-circuitpython-bmp280-3.0.7.tar.gz", "has_sig": false, "md5_digest": "522ab6d0203adc4f31060656a2c3a0a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20271, "upload_time": "2018-08-02T20:11:34", "url": "https://files.pythonhosted.org/packages/39/4b/8c957922d2336043655e53a4f820b9eb10db75c11d61aaa86cb76247569f/adafruit-circuitpython-bmp280-3.0.7.tar.gz" } ], "3.0.8": [ { "comment_text": "", "digests": { "md5": "68baefda404053277f120ca3cca88531", "sha256": "877d5863b542a9838630509686ce936a8414f74257058d76c5f1be661d761e30" }, "downloads": -1, "filename": "adafruit-circuitpython-bmp280-3.0.8.tar.gz", "has_sig": false, "md5_digest": "68baefda404053277f120ca3cca88531", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20278, "upload_time": "2018-10-25T17:02:15", "url": "https://files.pythonhosted.org/packages/e9/f1/219d66115b737fef871522a9b0370cc0b5dc22b2c46848eb8d24f89cf0b7/adafruit-circuitpython-bmp280-3.0.8.tar.gz" } ], "3.0.9": [ { "comment_text": "", "digests": { "md5": "26ea4f5424bb66da13c95a9fc298a5d9", "sha256": "21b52da0ad267b3aa3a9e8156c18a8fbe36689d67e0e7899b51def6e9fa02c18" }, "downloads": -1, "filename": "adafruit-circuitpython-bmp280-3.0.9.tar.gz", "has_sig": false, "md5_digest": "26ea4f5424bb66da13c95a9fc298a5d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20377, "upload_time": "2018-11-12T20:38:15", "url": "https://files.pythonhosted.org/packages/71/91/e18a75976cf434698aae9acc6c03e4658b08d25ff27d145d2ba00d78dd55/adafruit-circuitpython-bmp280-3.0.9.tar.gz" } ], "3.1.0": [ { "comment_text": "", "digests": { "md5": "e6f4d480af9700ddb4e5ea0c5a0edaf9", "sha256": "63ad0e84f7b5a97640021a76d2722b8ef3c07c4ee0b54349dd2b65f51387162d" }, "downloads": -1, "filename": "adafruit-circuitpython-bmp280-3.1.0.tar.gz", "has_sig": false, "md5_digest": "e6f4d480af9700ddb4e5ea0c5a0edaf9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21237, "upload_time": "2019-05-03T02:19:54", "url": "https://files.pythonhosted.org/packages/7b/1d/ca69a3c657f5af0807630312095d307c876ed8fbf1baa07ca508c4ca0fe3/adafruit-circuitpython-bmp280-3.1.0.tar.gz" } ], "3.1.1": [ { "comment_text": "", "digests": { "md5": "026b6d455f6492e301c9b6ff2ee1dd87", "sha256": "cb8b5af59a8ff9562b3d9f33869d520741c3a6df8a3a8baa7fdcffbaeb6cdf67" }, "downloads": -1, "filename": "adafruit-circuitpython-bmp280-3.1.1.tar.gz", "has_sig": false, "md5_digest": "026b6d455f6492e301c9b6ff2ee1dd87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21228, "upload_time": "2019-05-22T02:03:08", "url": "https://files.pythonhosted.org/packages/f6/fa/1cd9cb366e5a8592c0c927992ba4ed03dc31274984e3afaab3f54267e58b/adafruit-circuitpython-bmp280-3.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "026b6d455f6492e301c9b6ff2ee1dd87", "sha256": "cb8b5af59a8ff9562b3d9f33869d520741c3a6df8a3a8baa7fdcffbaeb6cdf67" }, "downloads": -1, "filename": "adafruit-circuitpython-bmp280-3.1.1.tar.gz", "has_sig": false, "md5_digest": "026b6d455f6492e301c9b6ff2ee1dd87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21228, "upload_time": "2019-05-22T02:03:08", "url": "https://files.pythonhosted.org/packages/f6/fa/1cd9cb366e5a8592c0c927992ba4ed03dc31274984e3afaab3f54267e58b/adafruit-circuitpython-bmp280-3.1.1.tar.gz" } ] }