You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,9 @@ See the documentation for usage examples.
20
20
* You plan on using a single motor with the standby feature: use `Motor` and control the standby pin manually
21
21
* You plan on using a single motor without the standby feature: use `Motor`
22
22
23
+
## Optional features
24
+
*`defmt`: you can enable this feature to get a `defmt::Format` implementation for all structs & enums in this crate and a `defmt::trace` call for every speed change.
25
+
23
26
## Examples
24
27
A simple example for the STM32F4 microcontrollers is [available](examples/stm32f4-single-motor-example/README.md).
Copy file name to clipboardExpand all lines: src/lib.rs
+11
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,9 @@
9
9
//! * You plan on using both motors without the standby feature: use two separate [`Motor`]s
10
10
//! * You plan on using a single motor with the standby feature: use [`Motor`] and control the standby pin manually
11
11
//! * You plan on using a single motor without the standby feature: use [`Motor`]
12
+
//!
13
+
//! ## Optional features
14
+
//! * `defmt`: you can enable this feature to get a `defmt::Format` implementation for all structs & enums in this crate and a `defmt::trace` call for every speed change.
12
15
13
16
#![forbid(unsafe_code)]
14
17
#![deny(warnings)]
@@ -24,6 +27,7 @@ use embedded_hal::pwm::SetDutyCycle;
24
27
25
28
/// Defines errors which can happen when calling [`Motor::drive()`].
0 commit comments