All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- [breaking-change] Changed the terms "master/slave" to "controller/target" to align with the I2C bus specification v.7
- Derived common traits for types.
- Add default for
ComparatorQueue
.
- [breaking-change] Updated
embedded-hal
to version1
,read
in one-shot mode is therefore only an inherent method. - [breaking-change] Simplified
SlaveAddr
enum. - Raised MSRV to 1.62.0.
- Removed
I2cInterface
. - Removed
reset_internal_driver_state
method. - Removed
DynamicOneShot
trait.
0.2.2 - 2021-07-29
DynamicOneShot
trait to ease usage of driver in functions. Seetrait
example.
- Updated
nb
dependency to version1
.
0.2.1 - 2020-06-22
- Added helper construction methods for
SlaveAddr
.
- Use Rust edition 2018 in code an examples.
0.2.0 - 2019-03-31
- [breaking-change] Mode change has been integrated into
into_continuous
andinto_one_shot
methods. This removes the need for astart
method in continuous mode and theError::NotStarted
. Everything is now encoded into the modes. When changing into continuous mode the measurements are started and to stop one can simply change into one-shot mode. (This is how the hardware does it anyway). The one-shot mode is not affected. When changing the mode an I²C communication error can occur but the unchanged device can now be retrieved.
0.1.0 - 2018-11-21
This is the initial release to crates.io of the feature-complete driver. There may be some API changes in the future, in case I decide that something can be further improved. All changes will be documented in this CHANGELOG.