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§
- Driver for the LCD display.
- Arguments to create a new LCD driver.
- Flags for the gate control.
- Memory access control settings.
- Simple image buffer.
Enums§
- LCD display commands
- Error type for driver operations.
- Whether to interlace the gates.
- Whether to mirror the gates.
- The direction to scan the gates.
- Horizontal refresh order values.
- Vertical refresh order values.
Constants§
- Set 12-bit colour mode.
- Set 16-bit colour mode.
- Set 16M colour mode, truncated.
- Set 18-bit colour mode.
- Set RGB mode with 65K colours.
- Set RGB mode with 262K colours.
Functions§
- Helper function to set the frame rate.
- Helper function to set the gate control values.
- Helper function to set the gate voltages.
- Helper function to set the power control 1 values.
- Helper function to set the power control 2 values.
Type Aliases§
- Convenience type for Results in this crate.