epd

Crates.ioepd
lib.rsepd
version0.0.2
sourcesrc
created_at2021-01-15 22:30:06.546638
updated_at2023-04-02 18:46:25.414619
descriptionDrivers for EPD(E-Paper Displays), WIP.
homepage
repositoryhttps://github.com/andelf/epd
max_upload_size
id342598
size44,885
Andelf (andelf)

documentation

https://docs.rs/epd

README

EPD driver

EPD = Electronic Paper Display

NOTE: This is a personal POC project.

How to use

    let spi = Spi::new(
        p.SPI2,
        p.PB10,
        p.PC3,
        p.PC2, // not used
        NoDma,
        NoDma,
        Hertz(1_000_000),
        embassy_stm32::spi::Config::default(),
    );

    let cs = Output::new(p.PC7, Level::Low, Speed::VeryHigh);
    let dc = Output::new(p.PC9, Level::High, Speed::VeryHigh);
    let rst = Output::new(p.PA11, Level::Low, Speed::VeryHigh);
    let busy = Input::new(p.PG9, Pull::None);

    let di = EPDInterface::new(spi, dc, cs, rst, busy);
    let mut display: TriColorEPD<_, DisplaySize400x300, SSD1619A> = TriColorEPD::new(di);

    display.init(&mut delay);

    // draw display here

    display.display_frame();
Commit count: 31

cargo fmt