diff options
| author | rafael <[email protected]> | 2024-10-21 12:19:10 +0200 |
|---|---|---|
| committer | rafael <[email protected]> | 2024-10-21 12:19:10 +0200 |
| commit | d92fb002ecc3ff4dcac51d8e74927d977b2343b0 (patch) | |
| tree | 26764ba89e44526652249a9ebcbff80b88b307aa /examples | |
| parent | d7db8fbab9a2bc363520505757386500d5710735 (diff) | |
rustfmt
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/rp23/src/bin/pwm.rs | 1 | ||||
| -rw-r--r-- | examples/rp23/src/bin/pwm_tb6612fng_motor_driver.rs | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/examples/rp23/src/bin/pwm.rs b/examples/rp23/src/bin/pwm.rs index 7314ee637..1dd5ca3de 100644 --- a/examples/rp23/src/bin/pwm.rs +++ b/examples/rp23/src/bin/pwm.rs | |||
| @@ -13,7 +13,6 @@ use embassy_rp::block::ImageDef; | |||
| 13 | use embassy_rp::peripherals::{PIN_25, PIN_4, PWM_SLICE2, PWM_SLICE4}; | 13 | use embassy_rp::peripherals::{PIN_25, PIN_4, PWM_SLICE2, PWM_SLICE4}; |
| 14 | use embassy_rp::pwm::{Config, Pwm, SetDutyCycle}; | 14 | use embassy_rp::pwm::{Config, Pwm, SetDutyCycle}; |
| 15 | use embassy_time::Timer; | 15 | use embassy_time::Timer; |
| 16 | // use embedded_hal_1::pwm::SetDutyCycle; | ||
| 17 | use {defmt_rtt as _, panic_probe as _}; | 16 | use {defmt_rtt as _, panic_probe as _}; |
| 18 | 17 | ||
| 19 | #[link_section = ".start_block"] | 18 | #[link_section = ".start_block"] |
diff --git a/examples/rp23/src/bin/pwm_tb6612fng_motor_driver.rs b/examples/rp23/src/bin/pwm_tb6612fng_motor_driver.rs index 36b8d9620..6c3a8998c 100644 --- a/examples/rp23/src/bin/pwm_tb6612fng_motor_driver.rs +++ b/examples/rp23/src/bin/pwm_tb6612fng_motor_driver.rs | |||
| @@ -10,12 +10,9 @@ use defmt::*; | |||
| 10 | use embassy_executor::Spawner; | 10 | use embassy_executor::Spawner; |
| 11 | use embassy_rp::block::ImageDef; | 11 | use embassy_rp::block::ImageDef; |
| 12 | use embassy_rp::config::Config; | 12 | use embassy_rp::config::Config; |
| 13 | use embassy_rp::gpio; | ||
| 14 | use embassy_rp::gpio::Output; | 13 | use embassy_rp::gpio::Output; |
| 15 | use embassy_rp::peripherals; | 14 | use embassy_rp::{gpio, peripherals, pwm}; |
| 16 | use embassy_rp::pwm; | 15 | use embassy_time::{Duration, Timer}; |
| 17 | use embassy_time::Duration; | ||
| 18 | use embassy_time::Timer; | ||
| 19 | use tb6612fng::{DriveCommand, Motor, Tb6612fng}; | 16 | use tb6612fng::{DriveCommand, Motor, Tb6612fng}; |
| 20 | use {defmt_rtt as _, panic_probe as _}; | 17 | use {defmt_rtt as _, panic_probe as _}; |
| 21 | 18 | ||
