Skip to main content

Crate gdep073e01

Crate gdep073e01 

Source
Expand description

Embedded-graphics driver for the GDEP073E01 7-color e-paper display.

This driver provides an interface to the Good Display GDEP073E01 e-paper display, implementing the embedded-graphics traits DrawTarget and OriginDimensions.

§Features

  • 7-color display support (Black, White, Yellow, Red, Orange, Blue, Green)
  • Full embedded-graphics integration with DrawTarget trait
  • Hardware abstraction layer (HAL) compatibility
  • Power management with sleep modes
  • Efficient internal buffering

§Usage

use embedded_graphics::prelude::*;
use embedded_graphics::primitives::{PrimitiveStyle, Rectangle};
use gdep073e01::{Gdep073e01, Color};
use core::convert::Infallible;

let mut display = Gdep073e01::new(spi, cs, dc, rst, busy, delay);

display.init().expect("Failed to initialize display");

let style = PrimitiveStyle::with_fill(Color::Red);
Rectangle::new(Point::new(10, 10), Size::new(50, 50))
    .into_styled(style)
    .draw(&mut display)
    .expect("Failed to draw rectangle");

display.flush().expect("Failed to update display");
display.sleep().expect("Failed to enter sleep mode");

Modules§

adapter
DitherDrawTarget adapter: converts Rgb888 to panel Color using a strategy.
dither
Dithering and halftone strategies to map RGB->Spectra6. Feature-gated implementations, no_std by default; FS requires alloc.
palette
Spectra6 palette and mapping utilities. Works in no_std.
prelude
Prelude module for convenient imports.

Structs§

Gdep073e01
GDEP073E01 display driver.

Enums§

Color
GDEP073E01 color variants.
Error
Error types for the GDEP073E01 driver.

Constants§

HEIGHT
Display height in pixels
WIDTH
Display width in pixels