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
based on the discussion on GitHub we don't need this dependency. it's
the only 0.x dependency currently present in the crate and doesn't
provide a lot of value since consuming code can use
`defmt::Debug2Format` when needed. the single `defmt::debug!` statement
in `Motor::drive` was not very helpful anyway if two motors were
connected as it did not differentiate between the motors in the message.
since this was the only optional feature there's no need anymore to test
with `--all-features` in the CI. this has been removed from the build
matrix (but the possibility to add it later has been kept as it doesn't
make the build script unnecessarily complicated).
Copy file name to clipboardExpand all lines: README.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,6 @@ 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-03`: you can enable this feature to get a `defmt::Format` implementation for all structs & enums in this crate and a `defmt::debug` call for every speed change.
25
-
26
23
## Examples
27
24
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
-13Lines changed: 0 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,6 @@
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-03`: you can enable this feature to get a `defmt::Format` implementation for all structs & enums in this crate and a `defmt::debug` call for every speed change.
15
12
16
13
#![forbid(unsafe_code)]
17
14
#![deny(warnings)]
@@ -20,14 +17,11 @@
20
17
#![deny(unused)]
21
18
#![no_std]
22
19
23
-
#[cfg(feature = "defmt-03")]
24
-
use defmt::Format;
25
20
use embedded_hal::digital::{OutputPin,StatefulOutputPin};
26
21
use embedded_hal::pwm::SetDutyCycle;
27
22
28
23
/// Defines errors which can happen when calling [`Motor::drive()`].
29
24
#[derive(PartialEq,Eq,Debug,Copy,Clone)]
30
-
#[cfg_attr(feature = "defmt-03", derive(Format))]
31
25
pubenumMotorError<IN1Error,IN2Error,PWMError>{
32
26
/// An invalid speed has been defined. The speed must be given as a percentage value between 0 and 100 to be valid.
0 commit comments