From fccfdbebd214e97e67043ac39258f777b3b0b97e Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Sat, 10 Feb 2024 19:57:23 +0000 Subject: [PATCH] Update alloc example for embedded-hal 1.0 --- rp2040-hal/examples/alloc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rp2040-hal/examples/alloc.rs b/rp2040-hal/examples/alloc.rs index 71bc09744..db61639b0 100644 --- a/rp2040-hal/examples/alloc.rs +++ b/rp2040-hal/examples/alloc.rs @@ -37,8 +37,8 @@ use rp2040_hal as hal; use hal::pac; // Some traits we need -use embedded_hal::blocking::delay::DelayMs; -use embedded_hal::digital::v2::OutputPin; +use embedded_hal::delay::DelayNs; +use embedded_hal::digital::OutputPin; /// The linker will place this boot block at the start of our program image. We /// need this to help the ROM bootloader get our code up and running.