|
f77e251bfb
|
fix code formatting
|
2024-03-03 19:05:01 +02:00 |
|
|
fe38f02a9c
|
use anyhow crate for error handling
|
2024-03-03 19:02:33 +02:00 |
|
|
dfadb52009
|
refactor lib.rs variables
|
2024-03-03 11:37:24 +02:00 |
|
|
14c2e61aae
|
refactor: store i2c bus handle as refcell
|
2024-02-27 22:43:10 +02:00 |
|
|
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 |
|
|
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 |
|
|
053e44de42
|
update examples
|
2024-02-25 21:00:59 +02:00 |
|
|
9bdc74649d
|
add doctest
|
2024-02-25 20:55:54 +02:00 |
|
|
b261eb61a2
|
remove doctest from lib
|
2024-02-25 19:54:59 +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 |
|
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
|
3c81f71770
|
Cleanup clippy warnings
|
2021-05-06 22:22:53 +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 |
|
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
|
379442bea6
|
Cleanup clippy warnings
|
2020-04-05 21:20:40 +02:00 |
|
marcelbuesing
|
06af0d61b2
|
Remove remaining pre 2018 artifacts
|
2019-11-27 11:07:15 +01:00 |
|
marcelbuesing
|
ad8d0798ed
|
Migrate to futures-0.3 and tokio-0.2
|
2019-11-27 11:00:31 +01:00 |
|
Chris
|
79955a19be
|
Fix the no_std f32 errors
|
2019-01-16 16:56:59 +01:00 |
|
marcelbuesing
|
0c90c96a85
|
Return temperature offset in get_sensor_settings (#12)
|
2019-01-05 20:20:03 +01:00 |
|
marcelbuesing
|
38bfe30acc
|
Fix temperature offset to be of type f32, closes #11
|
2018-12-22 10:02:35 +01:00 |
|
marcelbuesing
|
faec5049e4
|
#11 Add optional temperature offset
|
2018-12-14 21:22:21 +01:00 |
|
marcelbuesing
|
5c1de2a1d3
|
Rustfmt code
|
2018-10-17 22:10:55 +02:00 |
|
marcelbuesing
|
1682f433ab
|
Always set gas sensor settings when setting any gas related setting, regards #3
|
2018-06-06 18:53:24 +02:00 |
|
marcelbuesing
|
722e054f58
|
Actually set provided gas config, closes #3.
Failure to set the provided gas config lead to incorrect gas resistance values.
|
2018-06-05 23:45:26 +02:00 |
|
marcelbuesing
|
9701e85c39
|
Derive PartialEq for FieldDataCondition
|
2018-06-01 14:48:19 +02:00 |
|
marcelbuesing
|
ceed9e844b
|
Add example to crate documentation
|
2018-05-31 12:28:07 +02:00 |
|
marcelbuesing
|
833f892e6b
|
Rename Bme680_dev struct to Bme680
|
2018-05-31 12:13:36 +02:00 |
|
marcelbuesing
|
650db10d69
|
Reduce struct visibility where not required
|
2018-05-31 12:10:34 +02:00 |
|
marcelbuesing
|
ba7a1dd09f
|
Rename Bme680Error to Error
|
2018-05-31 11:46:46 +02:00 |
|
marcelbuesing
|
301cd55df4
|
Cleanup constants
|
2018-05-31 11:35:19 +02:00 |
|
marcelbuesing
|
3b84d4f6f3
|
Add documentation to settings and lib
|
2018-05-30 21:27:29 +02:00 |
|
marcelbuesing
|
336305d30d
|
Replace u8 with IIRFilterSize enum
|
2018-05-30 21:06:11 +02:00 |
|
marcelbuesing
|
44fc891b3e
|
Introduce SettingsBuilder
|
2018-05-30 08:28:48 +02:00 |
|