From 230fb947cbb62e325211c0124750aa691633be70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gro=C3=9F?= Date: Mon, 6 Aug 2018 10:03:35 +0200 Subject: [PATCH] Added a general display description struct (epds::epd) --- src/epds.rs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/epds.rs b/src/epds.rs index 3fbe435..d348ddb 100644 --- a/src/epds.rs +++ b/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} + } + + +} \ No newline at end of file