{"id":16981064,"url":"https://github.com/jasonacox/tiny_bme280_library","last_synced_at":"2025-10-12T13:33:37.329Z","repository":{"id":67236379,"uuid":"279216539","full_name":"jasonacox/Tiny_BME280_Library","owner":"jasonacox","description":"Arduino tiny library for the BME280 temperature, pressure and humidity sensor using I2C. Minimized to save PROGMEM space.","archived":false,"fork":false,"pushed_at":"2023-06-19T13:07:31.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T23:30:08.540Z","etag":null,"topics":["arduino-library","attiny","bme280","humidity-sensor","i2c","pressure-sensor","sensor","temperature"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasonacox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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":"2020-07-13T05:12:38.000Z","updated_at":"2020-12-22T04:39:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"f99f91b4-36e7-4d4b-a39e-b7bc66f6b58c","html_url":"https://github.com/jasonacox/Tiny_BME280_Library","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"826bf308ef9f5e547fe2f933f861fb997be0f6c1"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jasonacox/Tiny_BME280_Library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonacox%2FTiny_BME280_Library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonacox%2FTiny_BME280_Library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonacox%2FTiny_BME280_Library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonacox%2FTiny_BME280_Library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonacox","download_url":"https://codeload.github.com/jasonacox/Tiny_BME280_Library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonacox%2FTiny_BME280_Library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011444,"owners_count":26084947,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["arduino-library","attiny","bme280","humidity-sensor","i2c","pressure-sensor","sensor","temperature"],"created_at":"2024-10-14T02:04:32.760Z","updated_at":"2025-10-12T13:33:37.308Z","avatar_url":"https://github.com/jasonacox.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tiny BME280 Library #\n[![Build Status](https://travis-ci.org/jasonacox/Tiny_BME280_Library.svg?branch=master)](https://travis-ci.org/jasonacox/Tiny_BME280_Library)\n\nThis is a Arduino library for the BME280 Humidity, Barometric Pressure + Temp sensor\n\n## Description\nThis is a Arduino library for BME280 sensor for gathering temperature, humidity and pressure using I2C communication.  This library is a minimized fork of the more robust [Adafruit_BME280_Library](https://github.com/adafruit/Adafruit_BME280_Library) but with SPI and other features removed to reduce PROGMEM space.  This library is ideal for smaller controllers like the ATtiny85.\n\nThis library was designed to work with the Adafruit BME280 sensor in I2C mode.\n * http://www.adafruit.com/products/2652\n\n## Setup\nThese sensors use I2C to communicate, using the I2C Logic pins:\n* SCK - this is also the I2C clock pin, connect to the microcontrollers I2C clock line. On the ATtiny85 this is PB2 (physical pin 7)\n* SDI or SDA - this is also the I2C data pin, connect to the microcontrollers I2C data line. On the ATtiny85 this is PB0 (physical pin 5)\n\nUse of this library also requires the [Adafruit_Sensor](https://github.com/adafruit/Adafruit_Sensor) library to be installed on your system.\n\nDownload or clone this Tiny_BME280 library repo into your local Arduino libraries fold (e.g. `~/Documents/Arduino/libraries/` for MacOS) and restart the IDE.\n```bash\ncd ~/Documents/Arduino/libraries\ngit clone https://github.com/jasonacox/Tiny_BME280_Library.git \n```\nThis has been tested to work with ATtiny85 microcontrollers using the [ATTinyCore](https://github.com/SpenceKonde/ATTinyCore) core.\n\n## Example Usage\n```cpp\n#include \u003cAdafruit_Sensor.h\u003e    // https://github.com/adafruit/Adafruit_Sensor\n#include \u003cTiny_BME280.h\u003e        // https://github.com/jasonacox/Tiny_BME280_Library\n\n// Initialize BME280 Class\nTiny_BME280 bme; \n\n// Setup\nvoid setup() {\n    Serial.begin(9600);\n    while(!bme.begin()) {\n        Serial.println(\"BME280 not responding... waiting.\");\n        delay(1000);\n    }\n    Serial.println(\"BME280 activated\");\n}\n\n// Loop\nvoid loop() { \n    int temperature, pressure, humidity;\n\n    temperature = bme.readTemperature();\n    pressure = bme.readPressure() / 100.0;\n    humidity = bme.readHumidity();\n\n    Serial.print(\"Temperature = \");\n    Serial.print(temperature);\n    Serial.print(\"'C [\");\n    Serial.print((temperature * 1.8) + 32);\n    Serial.println(\"'F]\");\n    \n    Serial.print(\"Relative Humidity = \");\n    Serial.print(humidity);\n    Serial.println(\"%\");\n\n    Serial.print(\"Pressure = \");\n    Serial.print(pressure);\n    Serial.println(\" hPa\");\n    \n    Serial.println();\n\n    delay(1000);\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonacox%2Ftiny_bme280_library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonacox%2Ftiny_bme280_library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonacox%2Ftiny_bme280_library/lists"}