add support for Waveshare e-Paper 2.13 inch tri-color screen
datasheet is same as the 2.9" version, except resolutionmain
parent
9dedf76c57
commit
c552111ae8
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue