blob: 986205bb2d7cc8942d52a0bc853aa165c8b05d5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "sharp/Adafruit_SharpMem.h"
class Sharp {
private:
static Adafruit_SharpMem display;
static TaskHandle_t taskHandle;
static bool holdRendering;
static char message[16];
public:
static void begin(void);
inline static void pause(void) {
holdRendering = true;
}
inline static void unpause(void) {
holdRendering = false;
}
inline static void setMessage(const char *s) {
strncpy(message, s, 16);
}
private:
static void updateTask(void *);
};
|