{"id":15018621,"url":"https://github.com/adafruit/adafruit_circuitpython_bmp280","last_synced_at":"2025-04-05T02:11:06.700Z","repository":{"id":27360524,"uuid":"107922615","full_name":"adafruit/Adafruit_CircuitPython_BMP280","owner":"adafruit","description":"CircuitPython driver for the BMP280","archived":false,"fork":false,"pushed_at":"2025-01-16T18:45:42.000Z","size":161,"stargazers_count":36,"open_issues_count":0,"forks_count":25,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-03-29T01:11:09.738Z","etag":null,"topics":["circuitpython","hacktoberfest"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adafruit.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-23T02:28:59.000Z","updated_at":"2025-01-16T15:17:59.000Z","dependencies_parsed_at":"2023-12-09T18:27:00.617Z","dependency_job_id":"194b151e-cb05-4d93-a7b5-83b4a5999546","html_url":"https://github.com/adafruit/Adafruit_CircuitPython_BMP280","commit_stats":{"total_commits":122,"total_committers":22,"mean_commits":5.545454545454546,"dds":0.8278688524590164,"last_synced_commit":"9c9721c21f6bff5d8e97d7ea24c9a0605f47263c"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_BMP280","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_BMP280/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_BMP280/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adafruit%2FAdafruit_CircuitPython_BMP280/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adafruit","download_url":"https://codeload.github.com/adafruit/Adafruit_CircuitPython_BMP280/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276189,"owners_count":20912288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["circuitpython","hacktoberfest"],"created_at":"2024-09-24T19:52:11.955Z","updated_at":"2025-04-05T02:11:06.682Z","avatar_url":"https://github.com/adafruit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-bmp280/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/bmp280/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_BMP280/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_BMP280/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 from BMP280 Temperature and Barometic Pressure sensor\n\nInstallation and Dependencies\n=============================\n\nThis driver depends on:\n\n* `Adafruit CircuitPython \u003chttps://github.com/adafruit/circuitpython\u003e`_\n* `Bus Device \u003chttps://github.com/adafruit/Adafruit_CircuitPython_BusDevice\u003e`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle \u003chttps://github.com/adafruit/Adafruit_CircuitPython_Bundle\u003e`_.\n\nInstalling from PyPI\n--------------------\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver\n`from PyPI \u003chttps://pypi.org/project/adafruit-circuitpython-bmp280/\u003e`_. 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 \u0026\u0026 cd project-name\n    python3 -m venv .venv\n    source .venv/bin/activate\n    pip3 install adafruit-circuitpython-bmp280\n\nUsage Example\n=============\n\n.. code-block:: python\n\n    import time\n    import board\n    # import digitalio # For use with SPI\n    import adafruit_bmp280\n\n    # Create sensor object, communicating over the board's default I2C bus\n    i2c = board.I2C()   # uses board.SCL and board.SDA\n    bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c)\n\n    # OR Create sensor object, communicating over the board's default SPI bus\n    # spi = board.SPI()\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.sea_level_pressure = 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\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs \u003chttps://docs.circuitpython.org/projects/bmp280/en/latest/\u003e`_.\n\nFor information on building library documentation, please check out `this guide \u003chttps://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1\u003e`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n\u003chttps://github.com/adafruit/Adafruit_CircuitPython_bmp280/blob/main/CODE_OF_CONDUCT.md\u003e`_\nbefore contributing to help this project stay welcoming.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadafruit%2Fadafruit_circuitpython_bmp280","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadafruit%2Fadafruit_circuitpython_bmp280","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadafruit%2Fadafruit_circuitpython_bmp280/lists"}