MabezDev / ssd1351

A Driver crate for the SSD1351, which drives 128x128 colour displays
16 stars 14 forks source link

Add display size 128x96 #16

Closed kb10uy closed 2 years ago

kb10uy commented 2 years ago

Adafruit 1.27" Color OLED Breakout Board uses SSD1351 and its display dimension is 128x96. Using DisplaySize::Display128x96 for this module trims top 32 rows.

This PR adds the Display128x96 variant.

Testing code

Triangle::new(Point::new(16, 80), Point::new(64, 16), Point::new(112, 80))
    .into_styled(PrimitiveStyle::with_stroke(Rgb565::new(255, 0, 0), 3))
    .draw(&mut oled)
    .unwrap();

Display128x128

Using Display128x128

Display128x96 (new variant)

Using 128x96

MabezDev commented 2 years ago

Published as v0.4.2 on crates.io :)

kb10uy commented 2 years ago

Thank you for merge!