1 个不稳定版本
0.1.0 | 2019年6月26日 |
---|---|
0.0.3 |
|
0.0.2 |
|
0.0.1 |
|
#1013 在 嵌入式开发
22KB
461 行
bmp388
bmp388(压力传感器)的no_std驱动程序。
基本用法
将库库作为依赖项添加到Cargo.toml中
[dependencies.bmp388]
version = "<version>"
使用嵌入式-hal实现来获取I2C句柄和延迟,然后创建bmp388句柄
extern crate bmp388; // or just use bmp388; if 2018 edition is used.
// to create sensor with default configuration:
let mut ps = bmp388::BMP388::new(i2c)?;
// to get pressure:
let pres = ps.sensor_values();
println!("{:?}", pres);
文档
API文档可在docs.rs上找到。
待办事项
- 实现FiFo缓冲区支持
来源
基于Roma Sokolov和Alexander Zhuravlev的bmp280 crate。
许可证
- MIT许可证 (LICENSE-MIT 或 http://opensource.org/licenses/MIT)
lib.rs
:
一个用于与BMP388(压力传感器)接口的跨平台驱动程序
此驱动程序使用embedded-hal
特质构建。
依赖项
~71KB