1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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 *); };