time: Update examples, tests, and other code to use new Timer::after_x convenience methods
This commit is contained in:
@ -13,7 +13,7 @@ use embassy_rp::pio::{
|
||||
Common, Config, FifoJoin, Instance, InterruptHandler, Pio, PioPin, ShiftConfig, ShiftDirection, StateMachine,
|
||||
};
|
||||
use embassy_rp::{bind_interrupts, clocks, into_ref, Peripheral, PeripheralRef};
|
||||
use embassy_time::{Duration, Timer};
|
||||
use embassy_time::Timer;
|
||||
use fixed::types::U24F8;
|
||||
use fixed_macro::fixed;
|
||||
use smart_leds::RGB8;
|
||||
@ -153,7 +153,7 @@ async fn main(_spawner: Spawner) {
|
||||
}
|
||||
ws2812.write(&data).await;
|
||||
|
||||
Timer::after(Duration::from_millis(10)).await;
|
||||
Timer::after_millis(10).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user