arkaleks / ms5611 Goto Github PK
View Code? Open in Web Editor NEWno_std driver for the MS5611 (barometric pressure sensor)
License: Apache License 2.0
no_std driver for the MS5611 (barometric pressure sensor)
License: Apache License 2.0
Current implementation of this driver takes ownership of a Delay
in order to block get_compensated_sample()
and alike operations. While this is fine as a very simple solution, not all implementations of embedded_hal
provide multiple Delay
object, e.g. atsamd implementation only provides one Delay
which is using Systick
as delay provider.
Instead of replacing the API to borrow a Delay
whenever an operation need it, the API could be changed to be non-blocking by using a Timer
:
// Old
pub fn get_sample(&mut self, osr: Oversampling) -> Result<Sample, E> {}
// New
pub fn get_sample(&mut self, osr: Oversampling) -> nb::Result<Sample, Error<SPI>>{}
Where get_sample``returns
nb::WouldBlock ` as long as a conversion is ongoing, allowing user's code to do other operation in the mean time.
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.