Crates.io | memory-lcd-spi |
lib.rs | memory-lcd-spi |
version | 0.0.7 |
source | src |
created_at | 2023-06-02 16:39:59.872981 |
updated_at | 2024-01-30 18:39:24.426576 |
description | A driver for Sharp's Memory LCD or JDI's Memory In Pixel display, LPM013M126A, LPM009M360A, LS027B7DH01, etc. |
homepage | https://github.com/andelf/memory-lcd-spi |
repository | https://github.com/andelf/memory-lcd-spi |
max_upload_size | |
id | 881030 |
size | 33,253 |
embedded-hal
driver for Sharp's Memory LCD and JDI's Memory In Pixel displays.
Rgb111
colorlet mut display: MemoryLCD<LPM009M360A<BinaryColor>, _, _> = MemoryLCD::new(spi, cs);
display.set_rotation(memory_lcd_spi::framebuffer::Rotation::Deg90);
display.clear(BinaryColor::Off);
// drawing code with embedded-graphics
Line::new(
Point::new(0, 0),
Point::new(20, 20),
)
.into_styled(PrimitiveStyle::with_stroke(BinaryColor::On, 1))
.draw(&mut *display) // Yes, explicit deref is required
.unwrap();
display.update(&mut delay);
Or Rgb111
mode:
let mut display: MemoryLCD<LPM013M126A<Rgb111>, _, _> = MemoryLCD::new(spi, cs);
display.clear(Rgb111::BLACK);
Note
DISP
pin is not managed by this driver. You should control it by yourself.
EXTCOMIN
in is not managed by this driver. Follow the datasheet, use either 60Hz PWM or GND.