mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
add epd2in13bc to README and add some comments to example
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
//! A simple Driver for the Waveshare 2.13" (B/C) E-Ink Display via SPI
|
||||
//! More information on this display can be found at the [Waveshare Wiki]:(https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_(B))
|
||||
//! This driver was build and tested for 212x104, 2.13inch E-Ink display HAT for Raspberry Pi, three-color, SPI interface
|
||||
//!
|
||||
//! # Example for the 2.13" E-Ink Display
|
||||
//!
|
||||
@@ -67,7 +69,7 @@ use crate::traits::{
|
||||
pub const WIDTH: u32 = 104;
|
||||
/// Height of epd2in13bc in pixels
|
||||
pub const HEIGHT: u32 = 212;
|
||||
/// Default background color (white) of epd2in9bc display
|
||||
/// Default background color (white) of epd2in13bc display
|
||||
pub const DEFAULT_BACKGROUND_COLOR: Color = Color::White;
|
||||
|
||||
const NUM_DISPLAY_BITS: u32 = WIDTH * HEIGHT / 8;
|
||||
|
||||
Reference in New Issue
Block a user