diff options
Diffstat (limited to 'source/driverSharp.h')
-rw-r--r-- | source/driverSharp.h | 23 |
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); |