mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Added a general display description struct (epds::epd)
This commit is contained in:
+20
-1
@@ -1,2 +1,21 @@
|
|||||||
|
|
||||||
//TODO: fill
|
/// A struct containing necessary info about a epd (electronic paper display). E.g:
|
||||||
|
///
|
||||||
|
/// - Width
|
||||||
|
/// - Height
|
||||||
|
/// ...
|
||||||
|
///
|
||||||
|
/// This needs to be implemented by each new Display
|
||||||
|
pub struct EPD {
|
||||||
|
pub(crate) width: u16,
|
||||||
|
pub(crate) height: u16
|
||||||
|
//displayrotation?
|
||||||
|
}
|
||||||
|
|
||||||
|
impl EPD {
|
||||||
|
pub(crate) fn new(width: u16, height: u16) -> EPD {
|
||||||
|
EPD {width, height}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user