Skip to content

Releases: TeyKey1/pca9535

v2.0.0

21 Jan 18:38
Compare
Choose a tag to compare

Breaking changes!

  • Updated to embedded-hal v1.0
  • Added destroy() functions to expander impls which allows driver users to retrieve the I2C bus and interrupt pin
  • Fixed some documentation examples + typos

Migration

As a general migration guideline to embedded-hal v1 consult the migration guide

For users of PCA9535 most things should work out of the box. Only change required is that due to the InputPin trait now taking &mut self you need to modify the interrupt pin provided to the cached expander struct to be mutable.
In cases you have previously used shared-bus for I2C bus sharing it is now recommended to switch to embedded-hal-bus instead.

v1.2.0

31 Dec 12:31
Compare
Choose a tag to compare

1.2.0

Breaking changes!

  • Updated to embedded hal 1.0.0-alpha.9 (@MajorArkwolf)
  • Removed IOPin (currently not supported in embedded hal 1.0.0-alpha.9, will be readded once it is supported again) (@MajorArkwolf)

Thanks to @MajorArkwolf :)

v1.1.0

14 Jun 17:11
Compare
Choose a tag to compare
  • Added Debug trait implementation for all types which are accessible by the library user
  • Added Clone and Copy trait implementation for Polarity enum
  • Internal code cleanup

v1.0.0

20 Mar 16:29
Compare
Choose a tag to compare

Breaking changes!

  • Refactored error types and generics. The whole error handling is now simpler and should make more sense in general, as underlying embedded-hal errors are directly passed to the ExpanderError enum. Due to those changes certain types need an additional generic for I2C interface. Generics have been refactored as well so some generics are not on the same position like they used to be. Migrating to 1.0 should be relatively simple by adding those missing generics or rearranging them.
  • Added std::error::Error trait implementation for ExapnderError. This is automatically enabled by using the crates std feature. The change should allow for easier error handling with existing std solutions and libraries.
  • Updated crate to rust 2021 edition

v0.1.0

05 Jan 16:06
Compare
Choose a tag to compare
  • moved the special implementation of writes to any polarity register to the Expander Trait implementation instead of overwriting StandardExpanderInterface Trait functions
  • Bumped version from 0.0.1 to 0.1.0 to comply with Rust/Semver recommendations. This update does not break the API!

Initial release

26 Dec 09:22
Compare
Choose a tag to compare
v0.0.1

added gitignore for .cargo directory