{"id":19923762,"url":"https://github.com/versbinarii/bme280-rs","last_synced_at":"2025-04-05T15:05:40.663Z","repository":{"id":37880494,"uuid":"137429916","full_name":"VersBinarii/bme280-rs","owner":"VersBinarii","description":"A platform agnostic Rust driver for the Bosch BM[PE]-280","archived":false,"fork":false,"pushed_at":"2024-04-20T12:30:50.000Z","size":51,"stargazers_count":64,"open_issues_count":9,"forks_count":74,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T14:11:16.265Z","etag":null,"topics":["bme280","bmp280","embedded","embedded-hal","embedded-rust","i2c","no-std","rust","spi"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VersBinarii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2018-06-15T02:07:25.000Z","updated_at":"2025-03-21T12:46:19.000Z","dependencies_parsed_at":"2024-06-12T16:51:53.979Z","dependency_job_id":"d441f37e-c4f8-4c28-8825-fbae2c083878","html_url":"https://github.com/VersBinarii/bme280-rs","commit_stats":{"total_commits":53,"total_committers":9,"mean_commits":5.888888888888889,"dds":0.5283018867924528,"last_synced_commit":"960eaa76edcda97eb5224485499f4cb569f06acd"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VersBinarii%2Fbme280-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VersBinarii%2Fbme280-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VersBinarii%2Fbme280-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VersBinarii%2Fbme280-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VersBinarii","download_url":"https://codeload.github.com/VersBinarii/bme280-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353731,"owners_count":20925329,"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":["bme280","bmp280","embedded","embedded-hal","embedded-rust","i2c","no-std","rust","spi"],"created_at":"2024-11-12T22:15:22.133Z","updated_at":"2025-04-05T15:05:40.627Z","avatar_url":"https://github.com/VersBinarii.png","language":"Rust","readme":"# bme280\n\n[![Crates.io](https://img.shields.io/crates/d/bme280.svg)](https://crates.io/crates/bme280)\n[![Crates.io](https://img.shields.io/crates/v/bme280.svg)](https://crates.io/crates/bme280)\n[![Released API docs](https://docs.rs/bme280/badge.svg)](https://docs.rs/bme280)\n\nA rust device driver for the Bosch BME280 temperature, humidity, and atmospheric pressure sensor and the Bosch BMP280 temperature and atmospheric pressure sensor.\n\n## Usage\n\n```rust\nuse linux_embedded_hal as hal;\n\nuse linux_embedded_hal::{Delay, I2cdev};\nuse bme280::i2c::BME280;\n\n// using Linux I2C Bus #1 in this example\nlet i2c_bus = I2cdev::new(\"/dev/i2c-1\").unwrap();\nlet mut delay = /* ..delay provider */\n// initialize the BME280 using the primary I2C address 0x76\nlet mut bme280 = BME280::new_primary(i2c_bus);\n\n// or, initialize the BME280 using the secondary I2C address 0x77\n// let mut bme280 = BME280::new_secondary(i2c_bus);\n\n// or, initialize the BME280 using a custom I2C address\n// let bme280_i2c_addr = 0x88;\n// let mut bme280 = BME280::new(i2c_bus, bme280_i2c_addr);\n\n// initialize the sensor\nbme280.init(\u0026mut delay).unwrap();\n\n// measure temperature, pressure, and humidity\nlet measurements = bme280.measure(\u0026mut delay).unwrap();\n\nprintln!(\"Relative Humidity = {}%\", measurements.humidity);\nprintln!(\"Temperature = {} deg C\", measurements.temperature);\nprintln!(\"Pressure = {} pascals\", measurements.pressure);\n```\n\n## Serde Support\n\nTo enable optional serde serialization support for the [measurements struct](https://docs.rs/bme280/0.1.2/bme280/struct.Measurements.html), simply enable the `serde` feature, like so in `Cargo.toml`:\n\n```toml\n[dependencies]\nbme280 = { version = \"0.2\", features = [\"serde\"] }\n```\n\n## License\n\nLicensed under either of:\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fversbinarii%2Fbme280-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fversbinarii%2Fbme280-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fversbinarii%2Fbme280-rs/lists"}