Crates.io | bme680 |
lib.rs | bme680 |
version | 0.6.0 |
source | src |
created_at | 2018-05-25 21:10:02.690185 |
updated_at | 2021-05-06 21:00:20.468103 |
description | A pure Rust implementation for the BME680 environmental sensor. |
homepage | |
repository | https://github.com/marcelbuesing/bme680-hal |
max_upload_size | |
id | 67050 |
size | 314,400 |
This repository contains a pure Rust implementation for the BME680 environmental sensor. The library can be used to read the gas, pressure, humidity and temperature sensors via I²C.
The library uses the embedded-hal library to abstract reading and writing via I²C. In the examples you can find a demo how to use the library in Linux using the linux-embedded-hal implementation.
Determine the I2C device path
pi@raspberrypi:~ $ i2cdetect -y -l
i2c-1 i2c bcm2835 I2C adapter I2C adapter
Determine I2C-Address of sensor, 0x76
is the primary address, 0x77
is the secondary address.
If in doubt determine the address via the following command:
pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- 76
The examples folder contains an example for a simple influx database client inserting collected values. Below you may find examples of Chronograf graphs of an indoor measurement over a period of 30 days.