pub type LilkaDisplay = Display<SpiInterface<'static, SpiDev<'static>, Output<'static>>, ST7789, NoResetPin>;Expand description
Type alias for the Lilka display handle.
The concrete type varies by feature flag:
blocking—Display<SpiInterface<'static, SpiDev<'static>, Output<'static>>, ST7789, NoResetPin>async—Display<SpiInterface<SpiDev<'static>, Output<'static>>, ST7789, NoResetPin>
The display is a 240×280 ST7789 TFT panel with a 20-pixel vertical offset (the controller addresses rows 20–299 of a virtual 240×320 frame buffer). Color order is RGB; colors are hardware-inverted by the panel (handled automatically).
§Usage
Obtain the display from crate::Lilka::display and draw with the mipidsi or
lcd-async DrawTarget impl:
use lilkaoxide::prelude::*;
use embedded_graphics::{
pixelcolor::Rgb565,
primitives::{Circle, PrimitiveStyle},
prelude::*,
};
Circle::new(Point::new(100, 100), 40)
.into_styled(PrimitiveStyle::with_fill(Rgb565::RED))
.draw(&mut lilka.display)
.ok();Aliased Type§
pub struct LilkaDisplay { /* private fields */ }