diff options
| author | eZio Pan <[email protected]> | 2023-12-15 14:15:45 +0800 |
|---|---|---|
| committer | eZio Pan <[email protected]> | 2023-12-15 14:15:45 +0800 |
| commit | 77e372e842c64b95e94fff93a711112514588841 (patch) | |
| tree | 8984ebbcdb733b65bb7f960f4be06a16d8470cb2 /examples | |
| parent | a165d73eedfd7e02fe5360e9d844882e0d0df113 (diff) | |
cargo fmt
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32f4/src/bin/ws2812_pwm_dma.rs | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/examples/stm32f4/src/bin/ws2812_pwm_dma.rs b/examples/stm32f4/src/bin/ws2812_pwm_dma.rs index 79493dced..0c3444a47 100644 --- a/examples/stm32f4/src/bin/ws2812_pwm_dma.rs +++ b/examples/stm32f4/src/bin/ws2812_pwm_dma.rs | |||
| @@ -11,18 +11,12 @@ | |||
| 11 | #![feature(type_alias_impl_trait)] | 11 | #![feature(type_alias_impl_trait)] |
| 12 | 12 | ||
| 13 | use embassy_executor::Spawner; | 13 | use embassy_executor::Spawner; |
| 14 | 14 | use embassy_stm32::gpio::OutputType; | |
| 15 | use embassy_stm32::{ | 15 | use embassy_stm32::pac; |
| 16 | gpio::OutputType, | 16 | use embassy_stm32::time::khz; |
| 17 | pac, | 17 | use embassy_stm32::timer::simple_pwm::{PwmPin, SimplePwm}; |
| 18 | time::khz, | 18 | use embassy_stm32::timer::{Channel, CountingMode}; |
| 19 | timer::{ | ||
| 20 | simple_pwm::{PwmPin, SimplePwm}, | ||
| 21 | Channel, CountingMode, | ||
| 22 | }, | ||
| 23 | }; | ||
| 24 | use embassy_time::Timer; | 19 | use embassy_time::Timer; |
| 25 | |||
| 26 | use {defmt_rtt as _, panic_probe as _}; | 20 | use {defmt_rtt as _, panic_probe as _}; |
| 27 | 21 | ||
| 28 | #[embassy_executor::main] | 22 | #[embassy_executor::main] |
