Crates.io | tb6612fng |
lib.rs | tb6612fng |
version | 1.0.0 |
source | src |
created_at | 2023-01-07 08:33:46.740885 |
updated_at | 2024-09-23 19:11:35.868125 |
description | A `no_std` driver for the TB6612FNG motor driver. |
homepage | |
repository | https://github.com/rust-embedded-community/tb6612fng-rs |
max_upload_size | |
id | 752898 |
size | 43,680 |
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
A simple example for the STM32F4 microcontrollers is available.
For the changelog please see the dedicated CHANGELOG.md.
This crate is guaranteed to compile on stable Rust 1.81 and up. It might compile with older versions but that may change in any new patch release.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.