Crates.io | epd |
lib.rs | epd |
version | 0.0.2 |
source | src |
created_at | 2021-01-15 22:30:06.546638 |
updated_at | 2023-04-02 18:46:25.414619 |
description | Drivers for EPD(E-Paper Displays), WIP. |
homepage | |
repository | https://github.com/andelf/epd |
max_upload_size | |
id | 342598 |
size | 44,885 |
EPD = Electronic Paper Display
NOTE: This is a personal POC project.
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();