Added a general display description struct (epds::epd)
parent
38f446304b
commit
230fb947cb
21
src/epds.rs
21
src/epds.rs
|
|
@ -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}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue