This is a no_std
driver for the TB6612FNG motor driver as can e.g. be found on the corresponding SparkFun module.
Note that this work is not affiliated with any of the vendors of the controller or controller boards.
The motor driver itself supports two motors and has a standby pin which controls both at the same time.
The crate can be either used to control a single motor (using the Motor
struct directly) or
to control both motors (using the Tb6612fng
struct) - the latter also supports using the standby functionality.
See the documentation for usage examples.
Tb6612fng
Motor
sMotor
and control the standby pin manuallyMotor
defmt
: you can enable the defmt
feature to get a defmt::debug!
call for every speed change.This crate is guaranteed to compile on stable Rust 1.60 and up. It might compile with older versions but that may change in any new patch release.