eldruin / bmi160-rs Goto Github PK
View Code? Open in Web Editor NEWPlatform-agnostic Rust driver for the BMI160 inertial measurement unit (IMU)
License: Apache License 2.0
Platform-agnostic Rust driver for the BMI160 inertial measurement unit (IMU)
License: Apache License 2.0
the data returned is in i16
format. Without a way to access the sensor range, I can't convert this to a float.
Coming from Zephyr (and it's BMI160 library), there are two features that seem to be missing that would be really nice to have:
Hi, sorry this is more of a question then an issue.
I've been trying to get this crate working with through an SPI interface on an esp32 and haven't had much success.
It is my understanding that the read bit should be set when reading a register.
When I look at interface.rs I see that the read bit is being set when writing to the device instead of when reading.
for example:
fn write_register(&mut self, register: u8, data: u8) -> Result<(), Self::Error> {
self.cs.set_low().map_err(Error::Pin)?;
let payload: [u8; 2] = [register + 0x80, data];
let result = self.spi.write(&payload).map_err(Error::Comm);
self.cs.set_high().map_err(Error::Pin)?;
result
}
I was wondering if you could guide me on this, or am I just reading the datasheet completely wrong, tia.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.