Crate rpi_st7789v2_driver

Source
Expand description

A Raspberry Pi driver for the ST7789V2-based WaveShare 1.69“ LCD display.

This crate provides a high-level interface for controlling a WaveShare 1.69“ LCD display connected to a Raspberry Pi over SPI.

It implements both a simple “image”-based interface and embedded_graphics’ traits.

§Example

let mut lcd = Driver::new(Default::default())?;
lcd.init()?;
lcd.probe_buffer_length()?;

let mut image = lcd.image();
image.solid(Rgb565::new(255, 0, 255));
lcd.print((0, 0), &image)?;

Structs§

Enums§

Constants§

Functions§

Type Aliases§

  • Convenience type for Results in this crate.