aboutsummaryrefslogtreecommitdiffstats
path: root/source/driverSharp.h
diff options
context:
space:
mode:
authortcsullivan <tullivan99@gmail.com>2019-03-10 15:37:07 -0400
committertcsullivan <tullivan99@gmail.com>2019-03-10 15:37:07 -0400
commitdd33956654589ded6644a75088e50069b1744ef9 (patch)
treeeddd51f1aac130f6c7082a2de53b8e46f0387187 /source/driverSharp.h
parent3c3f87b4cab153b49e3cde105dd2f34712e0b790 (diff)
rtc, keeping time
Diffstat (limited to 'source/driverSharp.h')
-rw-r--r--source/driverSharp.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/source/driverSharp.h b/source/driverSharp.h
index f99c03c..799c828 100644
--- a/source/driverSharp.h
+++ b/source/driverSharp.h
@@ -1,2 +1,23 @@
+#include "sharp/Adafruit_SharpMem.h"
+
+class Sharp {
+private:
+ static Adafruit_SharpMem display;
+ static TaskHandle_t taskHandle;
+ static bool holdRendering;
+
+public:
+ static void begin(void);
+
+ inline static void pause(void) {
+ holdRendering = true;
+ }
+
+ inline static void unpause(void) {
+ holdRendering = false;
+ }
+
+private:
+ static void updateTask(void *);
+};
-void sharpInit(void);