add epd2in13bc to README and add some comments to example

This commit is contained in:
Reinier Balt
2021-05-24 09:58:42 +02:00
parent a4b8f5768e
commit f7d86d8bfe
3 changed files with 17 additions and 2 deletions
+3 -1
View File
@@ -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;