mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-27 07:45:28 +00:00
fix build
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
use crate::framebuffer::{self, AtomicFrameBuffer, FB_PAUSED};
|
use crate::framebuffer::{self, AtomicFrameBuffer, FB_PAUSED};
|
||||||
|
use core::alloc::{GlobalAlloc, Layout};
|
||||||
use core::sync::atomic::Ordering;
|
use core::sync::atomic::Ordering;
|
||||||
use embassy_rp::{
|
use embassy_rp::{
|
||||||
Peri,
|
Peri,
|
||||||
@@ -7,16 +8,12 @@ use embassy_rp::{
|
|||||||
spi::{Async, Spi},
|
spi::{Async, Spi},
|
||||||
};
|
};
|
||||||
use embassy_time::{Delay, Timer};
|
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::{
|
use embedded_graphics::{
|
||||||
pixelcolor::Rgb565,
|
pixelcolor::Rgb565,
|
||||||
prelude::{DrawTarget, RgbColor},
|
prelude::{DrawTarget, RgbColor},
|
||||||
};
|
};
|
||||||
|
use embedded_hal_bus::spi::ExclusiveDevice;
|
||||||
|
use st7365p_lcd::ST7365P;
|
||||||
|
|
||||||
type DISPLAY = ST7365P<
|
type DISPLAY = ST7365P<
|
||||||
ExclusiveDevice<Spi<'static, SPI1, Async>, Output<'static>, Delay>,
|
ExclusiveDevice<Spi<'static, SPI1, Async>, Output<'static>, Delay>,
|
||||||
|
|||||||
Reference in New Issue
Block a user