Crates.io | embedded-sensors |
lib.rs | embedded-sensors |
version | 0.1.1 |
source | src |
created_at | 2021-04-15 11:17:18.243722 |
updated_at | 2021-04-16 13:46:52.11143 |
description | Sensors in one place, with only one feature away. |
homepage | |
repository | https://github.com/niiyachiru/embedded-sensors |
max_upload_size | |
id | 384766 |
size | 66,029 |
Sensors in one place, with only one feature away.
You will need to add the dependency to your Cargo.toml
:
[dependencies]
embedded-sensors = "0.1.0"
Generally all supported sensors are enabled when you bind the crate into your project.
To disable all sensors you don't want to use, you have to set default-features = false
and specify the sensors that you do want to use in the features = ["..."]
field, for example:
[dependencies]
embedded-sensors = { version = "0.1.0", default-features = false, features = ["mpu925x", "ublox"] }
Feature | Sensors |
---|---|
ak8963 | AK8963 |
bh1750 | BH1750 |
mpu6500 | MPU6500 |
mpu925x | MPU9250 |
ublox | NEO-6M |
Please submit an issue or a pull request for a sensor that you want to use, but is not listed in here.
Licensed under either of
at your option.
Unless 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.