#ublox #mpu6500 #ak8963 #bh1750 #mpu9250

embedded-sensors

Sensors in one place, with only one feature away

2 releases

0.1.1 Apr 16, 2021
0.1.0 Apr 15, 2021

#785 in Hardware support

MIT/Apache

55KB
1.5K SLoC

embedded-sensors

Sensors in one place, with only one feature away.

How to use

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"] }

Supported sensors

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.

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~0–1MB
~20K SLoC