epdsi 0.1.3

no_std embedded-hal 1.0 compatible Rust driver framework for Electronic Paper Displays (EPD): SSD1680, SSD1681, SSD1677, UC8253, JD79661, ED2208, Pervasive Displays COG
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Hardware specification for GDEM0154Z90 (1.54" 200x200 Tri-Color display panel).

use crate::traits::{ColorMode, EpdPanel};

/// GDEM0154Z90 1.54-inch Tri-Color (Black, White, Red) E-Paper Display Panel.
#[derive(Debug, Clone, Copy, Default)]
pub struct GDEM0154Z90;

impl EpdPanel for GDEM0154Z90 {
    const WIDTH: u32 = 200;
    const HEIGHT: u32 = 200;
    const COLOR_MODE: ColorMode = ColorMode::TriColor;

    fn vcom(&self) -> Option<u8> {
        Some(0x26)
    }
}