forked from ZinggJM/GxEPD2_32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GxEPD2.h
41 lines (37 loc) · 1.09 KB
/
GxEPD2.h
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
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _GxEPD2_H_
#define _GxEPD2_H_
#include <Arduino.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#define GxEPD_BLACK 0x0000
#define GxEPD_DARKGREY 0x7BEF /* 128, 128, 128 */
#define GxEPD_LIGHTGREY 0xC618 /* 192, 192, 192 */
#define GxEPD_WHITE 0xFFFF
#define GxEPD_RED 0xF800 /* 255, 0, 0 */
class GxEPD2
{
public:
enum Panel
{
GDEP015OC1, WS_1_54_bw = GDEP015OC1,
GDE0213B1, WS_2_13_bw = GDE0213B1,
GDEH029A1, WS_2_9_bw = GDEH029A1,
GDEW027W3, WS_2_7_bw = GDEW027W3,
GDEW042T2, WS_4_2_bw = GDEW042T2,
GDEW075T8, WS_7_5_bw = GDEW075T8,
// 3-color
GDEW0154Z04, Waveshare_1_54_bwr = GDEW0154Z04,
GDEW0213Z16, Waveshare_2_13_bwr = GDEW0213Z16,
GDEW029Z10, Waveshare_2_9_bwr = GDEW029Z10,
GDEW027C44, Waveshare_2_7_bwr = GDEW027C44,
GDEW042Z15, Waveshare_4_2_bwr = GDEW042Z15,
GDEW075Z09, Waveshare_7_5_bwr = GDEW075Z09
};
struct ScreenDimensionType
{
uint16_t width;
uint16_t height;
};
static const ScreenDimensionType ScreenDimensions[];
};
#endif