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.
Unreleased - ReleaseDate
1.0.0 - 2024-09-23
- Add a
current_standby()
method to check if the driver is currently in standby mode. MotorError
andTb6612fngError
now implementcore::error::Error
(newly stabilised in Rust 1.81)
Motor::new()
andDriver::new()
methods now set the outputs upon their initialisation to the documented defaults.Motor::new()
andDriver::new()
methods now also return errors if they fail to set their outputs upon initialisation.- Breaking: update to
embedded-hal
1.0 - Breaking: Renamed error types to their struct names
- Breaking: Renamed
DriveCommand::Backwards
toDriveCommand::Backward
to matchDriveCommand::Forward
- The MSRV has been updated to 1.81.0 due to
core::error::Error
being implemented
- Removed the
drive_forward
,drive_backward
,stop
andbrake
functions as they are duplicates to thedrive
function with the different enum variants and make the API surface larger - Removed the
defmt
feature: it was only used for debugging and since theenum
s &struct
s implementDebug
consuming code can usedefmt::Debug2Format
when needed. The singledefmt::debug!
statement inMotor::drive
was not very helpful anyway if two motors were connected
0.2.0 - 2023-11-28
- Due to dependency updates the MSRV has been updated from 1.60 to 1.63. This
should only be relevant if you use the
defmt
feature, but we now only test with 1.63 and not older releases, so it's not guaranteed to work otherwise. - Breaking: the API was migrated from
embedded-hal:0.2
toembedded-hal:1.0.0-rc1
. If your HAL does not yet implement this, then please use the previous release of the library.