From 7fcc5291e69e93462b0187aa4ce4f01e8dc201ea Mon Sep 17 00:00:00 2001 From: sawyer bristol Date: Fri, 31 Oct 2025 17:46:52 -0600 Subject: [PATCH] fix build --- kernel/src/display.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/kernel/src/display.rs b/kernel/src/display.rs index 20cb798..c576c06 100644 --- a/kernel/src/display.rs +++ b/kernel/src/display.rs @@ -1,4 +1,5 @@ use crate::framebuffer::{self, AtomicFrameBuffer, FB_PAUSED}; +use core::alloc::{GlobalAlloc, Layout}; use core::sync::atomic::Ordering; use embassy_rp::{ Peri, @@ -7,16 +8,12 @@ use embassy_rp::{ spi::{Async, Spi}, }; use embassy_time::{Delay, Timer}; -use embedded_hal_bus::spi::ExclusiveDevice; -use st7365p_lcd::ST7365P; - -#[cfg(feature = "pimoroni2w")] -use core::alloc::{GlobalAlloc, Layout}; -#[cfg(feature = "pimoroni2w")] use embedded_graphics::{ pixelcolor::Rgb565, prelude::{DrawTarget, RgbColor}, }; +use embedded_hal_bus::spi::ExclusiveDevice; +use st7365p_lcd::ST7365P; type DISPLAY = ST7365P< ExclusiveDevice, Output<'static>, Delay>,