diff options
Diffstat (limited to 'examples/rp/src/bin/pio_ws2812.rs')
| -rw-r--r-- | examples/rp/src/bin/pio_ws2812.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rp/src/bin/pio_ws2812.rs b/examples/rp/src/bin/pio_ws2812.rs index 5c0c60246..7b3259538 100644 --- a/examples/rp/src/bin/pio_ws2812.rs +++ b/examples/rp/src/bin/pio_ws2812.rs | |||
| @@ -13,7 +13,7 @@ use embassy_rp::pio::{ | |||
| 13 | Common, Config, FifoJoin, Instance, InterruptHandler, Pio, PioPin, ShiftConfig, ShiftDirection, StateMachine, | 13 | Common, Config, FifoJoin, Instance, InterruptHandler, Pio, PioPin, ShiftConfig, ShiftDirection, StateMachine, |
| 14 | }; | 14 | }; |
| 15 | use embassy_rp::{bind_interrupts, clocks, into_ref, Peripheral, PeripheralRef}; | 15 | use embassy_rp::{bind_interrupts, clocks, into_ref, Peripheral, PeripheralRef}; |
| 16 | use embassy_time::{Duration, Timer}; | 16 | use embassy_time::Timer; |
| 17 | use fixed::types::U24F8; | 17 | use fixed::types::U24F8; |
| 18 | use fixed_macro::fixed; | 18 | use fixed_macro::fixed; |
| 19 | use smart_leds::RGB8; | 19 | use smart_leds::RGB8; |
| @@ -153,7 +153,7 @@ async fn main(_spawner: Spawner) { | |||
| 153 | } | 153 | } |
| 154 | ws2812.write(&data).await; | 154 | ws2812.write(&data).await; |
| 155 | 155 | ||
| 156 | Timer::after(Duration::from_millis(10)).await; | 156 | Timer::after_millis(10).await; |
| 157 | } | 157 | } |
| 158 | } | 158 | } |
| 159 | } | 159 | } |
