Commit graph

130 commits

Author SHA1 Message Date
35c2adef92 refactor: fix clippy hints 2024-02-27 22:12:24 +02:00
cf9b0fbdd0 refactor: format code 2024-02-27 22:09:16 +02:00
432d3643c7 refactor: soft_reset, init and set registers 2024-02-27 22:05:18 +02:00
4dc106450a todo: use anyhow crate to improve readability and maintenance 2024-02-27 20:49:06 +02:00
b5d2f80e15 refactor: fix settings variable names 2024-02-27 20:41:00 +02:00
43ca150615 refactor: extract i2c utility in its own file 2024-02-26 22:01:42 +02:00
43991b5e24 refactor: add docstrings to calculation 2024-02-26 21:34:57 +02:00
cb90ea40e4 refactor: remove generic type from boundary_check_u8 2024-02-26 21:25:31 +02:00
99923f31e5 refactor: rename struct fields 2024-02-26 21:06:36 +02:00
6eee3c1642 update README.md 2024-02-26 20:40:23 +02:00
30b60b20f3 fix lib.rs doc test 2024-02-26 20:15:51 +02:00
fa4cc738e0 simplify error handling 2024-02-26 19:44:08 +02:00
7174ddef17 remove .expect calls from lib 2024-02-25 22:20:32 +02:00
c46cd20217 remove res folder from examples 2024-02-25 21:37:19 +02:00
70f192c04e add .idea folder 2024-02-25 21:06:27 +02:00
02baa8f7ac rename example to read_sensor_data.rs 2024-02-25 21:06:14 +02:00
053e44de42 update examples 2024-02-25 21:00:59 +02:00
5468a27b02 update README.md 2024-02-25 20:58:38 +02:00
2c3fc02fef update rust edition to 2021 2024-02-25 20:57:40 +02:00
9bdc74649d add doctest 2024-02-25 20:55:54 +02:00
109a2685ef update README.md and Cargo.toml 2024-02-25 20:55:43 +02:00
38cf1075c8 remove influx client example 2024-02-25 20:48:36 +02:00
28eedb1266 refactor read temperature example 2024-02-25 20:48:10 +02:00
b261eb61a2 remove doctest from lib 2024-02-25 19:54:59 +02:00
81005c1aab remove tests 2024-02-25 18:38:04 +02:00
160b178f2e add linux embedded hall to dependencies 2024-02-25 18:37:58 +02:00
9a6893f326 rename calc to calculation 2024-02-25 11:46:35 +02:00
ccfcf8bd32 update embedded-hal and linux-embedded-hal to latest stable versions 2024-02-25 11:31:24 +02:00
9a210bdbe3 fix example for reading_temperature.rs 2024-02-24 22:20:22 +02:00
Sikkema, Isaac
4fd1a72812 Fix optional definition of FieldData 2023-06-19 19:18:32 +02:00
Sikkema, Isaac
ddaa99c209 Add optional serde support for FieldData 2023-06-17 11:03:00 +02:00
marcelbuesing
4b87e3c2f7
Migrate to embedded-hal=1.0.0-alpha.5 2021-11-16 15:39:57 +01:00
marcelbuesing
a4b407d534
Add changelog for 0.6.0 2021-05-06 22:55:40 +02:00
marcelbuesing
3801afd6a5
Bump version to 0.6.0 2021-05-06 22:45:12 +02:00
marcelbuesing
451eb28293
Remove FOSSA status 2021-05-06 22:42:04 +02:00
marcelbuesing
f8cb48c88f
Remove travis CI 2021-05-06 22:41:26 +02:00
marcelbuesing
ae98d1cd31
Set up cargo deny 2021-05-06 22:32:49 +02:00
marcelbuesing
3c81f71770
Cleanup clippy warnings 2021-05-06 22:22:53 +02:00
marcelbuesing
5c0688433a
Update influx example dependency to tokio 1.5 2021-05-06 21:50:05 +02:00
marcelbuesing
c6c230ac42
Set up github CI 2021-05-06 21:47:02 +02:00
Jan Gosmann
1e9986d41c
Add missing sleep to example
One has to sleep for the duration of the configured profile to read
proper data.

Closes #23.
2021-05-06 21:33:16 +02:00
Jan Gosmann
f531e617d6 Expose gas_valid and heat_stab
The BME680 datasheet recommends to check these values to ensure that a
gas reading is valid. To do so, they must be exposed by the library.
2021-05-06 21:24:25 +02:00
huntc
500dbd9811 Pass the delayer around mutabily
This is as opposed to retaining ownership of it
2021-05-06 21:21:22 +02:00
huntc
c97894f84c Cater for non-Linux environments
Doctests can be run using `cargo test --doc`. The examples still require Linux.
2021-05-06 21:21:22 +02:00
Marc Poulhiès
e10fa1a35a Trivial typo fix in documentation 2020-11-24 22:10:39 +01:00
marcelbuesing
80a165cf11
Mention drogue-bme680 2020-10-12 20:31:18 +02:00
Adrian Stanciu
05a6643b1a Remove warnings
`unused_parens` is now on by default:

```
warning: unnecessary parentheses around const expression
   --> src\lib.rs:777:35
    |
777 |         let mut coeff_array: [u8; (BME680_COEFF_ADDR1_LEN + BME680_COEFF_ADDR2_LEN)] =
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
    |
    = note: `#[warn(unused_parens)]` on by default

warning: unnecessary parentheses around const expression
   --> src\lib.rs:778:17
    |
778 |             [0; (BME680_COEFF_ADDR1_LEN + BME680_COEFF_ADDR2_LEN)];
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses

warning: 2 warnings emitted
```
2020-08-24 09:21:27 +02:00
marcelbuesing
9df17c592d
Migrate influx example to influx_db_client crate and tokio 0.2 2020-07-27 13:13:46 +02:00
marcelbuesing
97d9f5ea81
Bump version to 0.5.1 2020-04-05 21:24:57 +02:00
marcelbuesing
379442bea6
Cleanup clippy warnings 2020-04-05 21:20:40 +02:00