This commit is contained in:
rafael 2024-10-20 23:31:53 +02:00
parent 7fc09f89e8
commit 8baf88f8f4

View File

@ -5,19 +5,19 @@
#![no_std]
#![no_main]
use assign_resources::assign_resources;
use defmt::*;
use embassy_executor::Spawner;
use embassy_rp::block::ImageDef;
use embassy_rp::config::Config;
use embassy_rp::gpio;
use embassy_rp::gpio::Output;
use embassy_rp::peripherals;
use embassy_rp::gpio;
use embassy_rp::pwm;
use embassy_time::Duration;
use embassy_time::Timer;
use {defmt_rtt as _, panic_probe as _};
use tb6612fng::{DriveCommand, Motor, Tb6612fng};
use assign_resources::assign_resources;
use {defmt_rtt as _, panic_probe as _};
/// Maximum PWM value (fully on)
const PWM_MAX: u16 = 50000;
@ -111,4 +111,3 @@ async fn main(_spawner: Spawner) {
Timer::after(Duration::from_secs(5)).await;
}
}