mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user