mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Mainly improved Documenation
This commit is contained in:
@@ -3,6 +3,9 @@ use crate::graphics::{Display, DisplayRotation};
|
||||
use embedded_graphics::pixelcolor::BinaryColor;
|
||||
use embedded_graphics::prelude::*;
|
||||
|
||||
/// Full size buffer for use with the 1in54 EPD
|
||||
///
|
||||
/// Can also be manually constructed and be used together with VarDisplay
|
||||
pub struct Display1in54b {
|
||||
buffer: [u8; WIDTH as usize * HEIGHT as usize / 8],
|
||||
rotation: DisplayRotation,
|
||||
|
||||
@@ -14,8 +14,11 @@ use crate::traits::{
|
||||
mod constants;
|
||||
use crate::epd1in54b::constants::*;
|
||||
|
||||
/// Width of epd1in54 in pixels
|
||||
pub const WIDTH: u32 = 200;
|
||||
/// Height of epd1in54 in pixels
|
||||
pub const HEIGHT: u32 = 200;
|
||||
/// Default Background Color (white)
|
||||
pub const DEFAULT_BACKGROUND_COLOR: Color = Color::White;
|
||||
const IS_BUSY_LOW: bool = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user