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

datasheet is same as the 2.9" version, except resolution
This commit is contained in:
Reinier Balt
2021-05-24 09:58:42 +02:00
parent 9dedf76c57
commit c552111ae8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 {
+2 -2
View File
@@ -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;