Trait esp_ward::display::Display

source ·
pub trait Display {
    // Required methods
    fn set_pixel(&mut self, x: usize, y: usize);
    fn write_str(&mut self, str: &str);
    fn reset(&mut self);
}
Expand description

Provides a basic set of operations for interacting with a display.

Required Methods§

source

fn set_pixel(&mut self, x: usize, y: usize)

Sets a single pixel on the display to a specified coordinates.

source

fn write_str(&mut self, str: &str)

Writes a string to the display at the current cursor position without a newline.

source

fn reset(&mut self)

Resets the display.

Implementors§

source§

impl<CLK: OutputPin<Error = Infallible>, DIN: OutputPin<Error = Infallible>, DC: OutputPin<Error = Infallible>, CE: OutputPin<Error = Infallible>, RST: OutputPin<Error = Infallible>, BL: OutputPin<Error = Infallible>> Display for Pcd8544Display<CLK, DIN, DC, CE, RST, BL>

source§

impl<T: _esp_hal_spi_master_Instance + 'static, M: IsFullDuplex, RST: OutputPin<Error = Infallible>, DC: OutputPin<Error = Infallible>> Display for Ili9341Display<T, M, RST, DC>