Browse Source

add support for Waveshare e-Paper 2.13 inch tri-color screen

datasheet is same as the 2.9" version, except resolution
main
Reinier Balt 5 years ago
parent
commit
c552111ae8
  1. 2
      src/epd2in13bc/graphics.rs
  2. 4
      src/epd2in13bc/mod.rs

2
src/epd2in13bc/graphics.rs

@ -3,7 +3,7 @@ use crate::graphics::{Display, DisplayRotation};
use embedded_graphics::pixelcolor::BinaryColor;
use embedded_graphics::prelude::*;
/// Full size buffer for use with the 2in9b/c EPD
/// Full size buffer for use with the 2in13b/c EPD
///
/// Can also be manually constructed and be used together with VarDisplay
pub struct Display2in13bc {

4
src/epd2in13bc/mod.rs

@ -64,9 +64,9 @@ use crate::traits::{
};
/// Width of epd2in13bc in pixels
pub const WIDTH: u32 = 128;
pub const WIDTH: u32 = 104;
/// Height of epd2in13bc in pixels
pub const HEIGHT: u32 = 296;
pub const HEIGHT: u32 = 212;
/// Default background color (white) of epd2in9bc display
pub const DEFAULT_BACKGROUND_COLOR: Color = Color::White;

Loading…
Cancel
Save