mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Fixed examples and more small improvements
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use color::Color;
|
||||
|
||||
pub(crate) const WIDTH: u32 = 400;
|
||||
pub(crate) const HEIGHT: u32 = 300;
|
||||
pub(crate) const DEFAULT_BACKGROUND_COLOR: Color = Color::White;
|
||||
pub const WIDTH: u32 = 400;
|
||||
pub const HEIGHT: u32 = 300;
|
||||
pub const DEFAULT_BACKGROUND_COLOR: Color = Color::White;
|
||||
|
||||
pub(crate) const LUT_VCOM0: [u8; 44] = [
|
||||
0x00, 0x17, 0x00, 0x00, 0x00, 0x02,
|
||||
|
||||
+3
-2
@@ -56,14 +56,15 @@ use interface::DisplayInterface;
|
||||
|
||||
//The Lookup Tables for the Display
|
||||
pub(crate) mod constants; //TODO: Limit to crate::drawing
|
||||
use self::constants::*;
|
||||
pub use self::constants::*;
|
||||
|
||||
use color::Color;
|
||||
|
||||
pub(crate) mod command;
|
||||
use self::command::Command;
|
||||
|
||||
pub mod graphics;
|
||||
mod graphics;
|
||||
pub use self::graphics::Buffer4in2;
|
||||
|
||||
|
||||
/// EPD4in2 driver
|
||||
|
||||
Reference in New Issue
Block a user