Paperd.Ink Library
0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
GxEPD2.h
Go to the documentation of this file.
1
// Display Library for SPI e-paper panels from Dalian Good Display and boards from Waveshare.
2
// Requires HW SPI and Adafruit_GFX. Caution: these e-papers require 3.3V supply AND data lines!
3
//
4
// based on Demo Example from Good Display: http://www.e-paper-display.com/download_list/downloadcategoryid=34&isMode=false.html
5
//
6
// Author: Jean-Marc Zingg
7
//
8
// Version: see library.properties
9
//
10
// Library: https://github.com/ZinggJM/GxEPD2
11
12
#ifndef _GxEPD2_H_
13
#define _GxEPD2_H_
14
15
#include <Arduino.h>
16
#include <SPI.h>
17
18
// color definitions for GxEPD, GxEPD2 and GxEPD_HD, values correspond to RGB565 values for TFTs
19
#define GxEPD_BLACK 0x0000
20
#define GxEPD_WHITE 0xFFFF
21
// some controllers for b/w EPDs support grey levels
22
#define GxEPD_DARKGREY 0x7BEF
// 128, 128, 128
23
#define GxEPD_LIGHTGREY 0xC618
// 192, 192, 192
24
// values for 3-color or 7-color EPDs
25
#define GxEPD_RED 0xF800
// 255, 0, 0
26
#define GxEPD_YELLOW 0xFFE0
// 255, 255, 0 !!no longer same as GxEPD_RED!!
27
#define GxEPD_COLORED GxEPD_RED
28
// values for 7-color EPDs only
29
#define GxEPD_BLUE 0x001F
// 0, 0, 255
30
#define GxEPD_GREEN 0x07E0
// 0, 255, 0
31
#define GxEPD_ORANGE 0xFD20
// 255, 165, 0
32
33
class
GxEPD2
34
{
35
public
:
36
enum
Panel
37
{
38
GDEW0102T4
,
Waveshare_1_02_bw
=
GDEW0102T4
,
39
GDEP015OC1
,
Waveshare_1_54_bw
=
GDEP015OC1
,
40
DEPG0150BN
,
41
GDEH0154D67
,
Waveshare_1_54_bw_D67
=
GDEH0154D67
,
42
GDEW0154T8
,
43
GDEW0154M09
,
44
GDEW0154M10
,
45
GDE0213B1
,
Waveshare_2_13_bw
=
GDE0213B1
,
46
GDEH0213B72
,
Waveshare_2_13_bw_B72
=
GDEH0213B72
,
47
GDEH0213B73
,
Waveshare_2_13_bw_B73
=
GDEH0213B73
,
48
GDEM0213B74
,
49
GDEW0213I5F
,
Waveshare_2_13_flex
=
GDEW0213I5F
,
50
GDEW0213M21
,
51
GDEW0213T5D
,
52
DEPG0213BN
,
53
GDEW026T0
,
Waveshare_2_6_bw
=
GDEW026T0
,
54
GDEW026M01
,
55
DEPG0266BN
,
56
GDEH029A1
,
Waveshare_2_9_bw
=
GDEH029A1
,
57
GDEW029T5
,
Waveshare_2_9_bw_T5
=
GDEW029T5
,
58
GDEW029T5D
,
59
GDEW029I6FD
,
60
GDEW029M06
,
61
GDEM029T94
,
62
DEPG0290BS
,
63
GDEW027W3
,
Waveshare_2_7_bw
=
GDEW027W3
,
64
GDEY027T91
,
65
ED037TC1
,
66
GDEW0371W7
,
Waveshare_3_7_bw
=
GDEW0371W7
,
67
GDEW042T2
,
Waveshare_4_2_bw
=
GDEW042T2
,
68
GDEW042M01
,
69
GDEW0583T7
,
Waveshare_5_83_bw
=
GDEW0583T7
,
70
GDEW0583T8
,
71
GDEW075T8
,
Waveshare_7_5_bw
=
GDEW075T8
,
72
GDEW075T7
,
Waveshare_7_5_bw_T7
=
GDEW075T7
,
73
GDEH116T91
,
74
GDEW1248T3
,
Waveshare_12_24_bw
=
GDEW1248T3
,
75
ED060SCT
,
// on Waveshare IT8951 Driver HAT
76
ED060KC1
,
// on Waveshare IT8951 Driver HAT 1448x1072
77
ED078KC2
,
// on Waveshare IT8951 Driver HAT 1872x1404
78
ES103TC1
,
// on Waveshare IT8951 Driver HAT 1872x1404
79
// 3-color
80
GDEW0154Z04
,
Waveshare_1_54_bwr
=
GDEW0154Z04
,
81
GDEH0154Z90
,
Waveshare_1_54_bwr_Z90
=
GDEH0154Z90
,
82
GDEW0213Z16
,
Waveshare_2_13_bwr
=
GDEW0213Z16
,
83
GDEW0213Z19
,
84
GDEY0213Z98
,
85
GDEW029Z10
,
Waveshare_2_9_bwr
=
GDEW029Z10
,
86
GDEH029Z13
,
87
GDEM029C90
,
88
GDEY0266Z90
,
Waveshare_2_66_bwr
=
GDEY0266Z90
,
89
GDEW027C44
,
Waveshare_2_7_bwr
=
GDEW027C44
,
90
GDEW042Z15
,
Waveshare_4_2_bwr
=
GDEW042Z15
,
91
GDEQ042Z21
,
Waveshare_4_2_V2_bwr
=
GDEQ042Z21
,
92
GDEW0583Z21
,
Waveshare_5_83_bwr
=
GDEW0583Z21
,
93
GDEW0583Z83
,
94
ACeP565
,
Waveshare_5_65_7c
=
ACeP565
,
95
GDEW075Z09
,
Waveshare_7_5_bwr
=
GDEW075Z09
,
96
GDEW075Z08
,
Waveshare_7_5_bwr_Z08
=
GDEW075Z08
,
97
GDEH075Z90
,
Waveshare_7_5_bwr_Z90
=
GDEH075Z90
,
98
GDEY1248Z51
99
};
100
};
101
102
#endif
GxEPD2
Definition
GxEPD2.h:34
GxEPD2::Panel
Panel
Definition
GxEPD2.h:37
GxEPD2::Waveshare_4_2_V2_bwr
@ Waveshare_4_2_V2_bwr
Definition
GxEPD2.h:91
GxEPD2::Waveshare_1_54_bwr_Z90
@ Waveshare_1_54_bwr_Z90
Definition
GxEPD2.h:81
GxEPD2::Waveshare_5_83_bw
@ Waveshare_5_83_bw
Definition
GxEPD2.h:69
GxEPD2::ACeP565
@ ACeP565
Definition
GxEPD2.h:94
GxEPD2::GDEH0154D67
@ GDEH0154D67
Definition
GxEPD2.h:41
GxEPD2::GDEW029Z10
@ GDEW029Z10
Definition
GxEPD2.h:85
GxEPD2::GDEW0583Z83
@ GDEW0583Z83
Definition
GxEPD2.h:93
GxEPD2::Waveshare_3_7_bw
@ Waveshare_3_7_bw
Definition
GxEPD2.h:66
GxEPD2::Waveshare_4_2_bwr
@ Waveshare_4_2_bwr
Definition
GxEPD2.h:90
GxEPD2::GDEW029T5
@ GDEW029T5
Definition
GxEPD2.h:57
GxEPD2::Waveshare_2_9_bw_T5
@ Waveshare_2_9_bw_T5
Definition
GxEPD2.h:57
GxEPD2::GDE0213B1
@ GDE0213B1
Definition
GxEPD2.h:45
GxEPD2::GDEY027T91
@ GDEY027T91
Definition
GxEPD2.h:64
GxEPD2::DEPG0290BS
@ DEPG0290BS
Definition
GxEPD2.h:62
GxEPD2::ED060KC1
@ ED060KC1
Definition
GxEPD2.h:76
GxEPD2::Waveshare_1_02_bw
@ Waveshare_1_02_bw
Definition
GxEPD2.h:38
GxEPD2::Waveshare_2_9_bwr
@ Waveshare_2_9_bwr
Definition
GxEPD2.h:85
GxEPD2::Waveshare_7_5_bw
@ Waveshare_7_5_bw
Definition
GxEPD2.h:71
GxEPD2::Waveshare_2_7_bwr
@ Waveshare_2_7_bwr
Definition
GxEPD2.h:89
GxEPD2::ED037TC1
@ ED037TC1
Definition
GxEPD2.h:65
GxEPD2::Waveshare_2_13_bw_B72
@ Waveshare_2_13_bw_B72
Definition
GxEPD2.h:46
GxEPD2::Waveshare_5_65_7c
@ Waveshare_5_65_7c
Definition
GxEPD2.h:94
GxEPD2::Waveshare_7_5_bw_T7
@ Waveshare_7_5_bw_T7
Definition
GxEPD2.h:72
GxEPD2::GDEW0371W7
@ GDEW0371W7
Definition
GxEPD2.h:66
GxEPD2::GDEH075Z90
@ GDEH075Z90
Definition
GxEPD2.h:97
GxEPD2::GDEW026T0
@ GDEW026T0
Definition
GxEPD2.h:53
GxEPD2::GDEM029T94
@ GDEM029T94
Definition
GxEPD2.h:61
GxEPD2::GDEP015OC1
@ GDEP015OC1
Definition
GxEPD2.h:39
GxEPD2::GDEW042Z15
@ GDEW042Z15
Definition
GxEPD2.h:90
GxEPD2::GDEW1248T3
@ GDEW1248T3
Definition
GxEPD2.h:74
GxEPD2::ED060SCT
@ ED060SCT
Definition
GxEPD2.h:75
GxEPD2::GDEW0583Z21
@ GDEW0583Z21
Definition
GxEPD2.h:92
GxEPD2::GDEQ042Z21
@ GDEQ042Z21
Definition
GxEPD2.h:91
GxEPD2::GDEY0213Z98
@ GDEY0213Z98
Definition
GxEPD2.h:84
GxEPD2::GDEW075Z08
@ GDEW075Z08
Definition
GxEPD2.h:96
GxEPD2::Waveshare_2_13_flex
@ Waveshare_2_13_flex
Definition
GxEPD2.h:49
GxEPD2::Waveshare_2_13_bwr
@ Waveshare_2_13_bwr
Definition
GxEPD2.h:82
GxEPD2::Waveshare_7_5_bwr_Z90
@ Waveshare_7_5_bwr_Z90
Definition
GxEPD2.h:97
GxEPD2::Waveshare_1_54_bw
@ Waveshare_1_54_bw
Definition
GxEPD2.h:39
GxEPD2::GDEW0213T5D
@ GDEW0213T5D
Definition
GxEPD2.h:51
GxEPD2::GDEM029C90
@ GDEM029C90
Definition
GxEPD2.h:87
GxEPD2::GDEW0583T7
@ GDEW0583T7
Definition
GxEPD2.h:69
GxEPD2::Waveshare_2_13_bw
@ Waveshare_2_13_bw
Definition
GxEPD2.h:45
GxEPD2::GDEY1248Z51
@ GDEY1248Z51
Definition
GxEPD2.h:98
GxEPD2::Waveshare_12_24_bw
@ Waveshare_12_24_bw
Definition
GxEPD2.h:74
GxEPD2::Waveshare_7_5_bwr_Z08
@ Waveshare_7_5_bwr_Z08
Definition
GxEPD2.h:96
GxEPD2::ED078KC2
@ ED078KC2
Definition
GxEPD2.h:77
GxEPD2::GDEH0213B72
@ GDEH0213B72
Definition
GxEPD2.h:46
GxEPD2::Waveshare_2_66_bwr
@ Waveshare_2_66_bwr
Definition
GxEPD2.h:88
GxEPD2::GDEH116T91
@ GDEH116T91
Definition
GxEPD2.h:73
GxEPD2::GDEW027W3
@ GDEW027W3
Definition
GxEPD2.h:63
GxEPD2::GDEW0213Z16
@ GDEW0213Z16
Definition
GxEPD2.h:82
GxEPD2::GDEW075T7
@ GDEW075T7
Definition
GxEPD2.h:72
GxEPD2::GDEM0213B74
@ GDEM0213B74
Definition
GxEPD2.h:48
GxEPD2::ES103TC1
@ ES103TC1
Definition
GxEPD2.h:78
GxEPD2::GDEW0154T8
@ GDEW0154T8
Definition
GxEPD2.h:42
GxEPD2::GDEW075T8
@ GDEW075T8
Definition
GxEPD2.h:71
GxEPD2::DEPG0213BN
@ DEPG0213BN
Definition
GxEPD2.h:52
GxEPD2::Waveshare_2_9_bw
@ Waveshare_2_9_bw
Definition
GxEPD2.h:56
GxEPD2::Waveshare_2_7_bw
@ Waveshare_2_7_bw
Definition
GxEPD2.h:63
GxEPD2::GDEW0154Z04
@ GDEW0154Z04
Definition
GxEPD2.h:80
GxEPD2::GDEW0154M09
@ GDEW0154M09
Definition
GxEPD2.h:43
GxEPD2::GDEW0102T4
@ GDEW0102T4
Definition
GxEPD2.h:38
GxEPD2::GDEW0213Z19
@ GDEW0213Z19
Definition
GxEPD2.h:83
GxEPD2::Waveshare_1_54_bw_D67
@ Waveshare_1_54_bw_D67
Definition
GxEPD2.h:41
GxEPD2::GDEW029I6FD
@ GDEW029I6FD
Definition
GxEPD2.h:59
GxEPD2::GDEW0213M21
@ GDEW0213M21
Definition
GxEPD2.h:50
GxEPD2::GDEW0154M10
@ GDEW0154M10
Definition
GxEPD2.h:44
GxEPD2::Waveshare_7_5_bwr
@ Waveshare_7_5_bwr
Definition
GxEPD2.h:95
GxEPD2::GDEW042T2
@ GDEW042T2
Definition
GxEPD2.h:67
GxEPD2::GDEW0583T8
@ GDEW0583T8
Definition
GxEPD2.h:70
GxEPD2::GDEH029A1
@ GDEH029A1
Definition
GxEPD2.h:56
GxEPD2::GDEW029T5D
@ GDEW029T5D
Definition
GxEPD2.h:58
GxEPD2::Waveshare_5_83_bwr
@ Waveshare_5_83_bwr
Definition
GxEPD2.h:92
GxEPD2::GDEW029M06
@ GDEW029M06
Definition
GxEPD2.h:60
GxEPD2::GDEH0154Z90
@ GDEH0154Z90
Definition
GxEPD2.h:81
GxEPD2::GDEH029Z13
@ GDEH029Z13
Definition
GxEPD2.h:86
GxEPD2::Waveshare_4_2_bw
@ Waveshare_4_2_bw
Definition
GxEPD2.h:67
GxEPD2::GDEW042M01
@ GDEW042M01
Definition
GxEPD2.h:68
GxEPD2::DEPG0150BN
@ DEPG0150BN
Definition
GxEPD2.h:40
GxEPD2::Waveshare_2_6_bw
@ Waveshare_2_6_bw
Definition
GxEPD2.h:53
GxEPD2::GDEW0213I5F
@ GDEW0213I5F
Definition
GxEPD2.h:49
GxEPD2::GDEY0266Z90
@ GDEY0266Z90
Definition
GxEPD2.h:88
GxEPD2::GDEW027C44
@ GDEW027C44
Definition
GxEPD2.h:89
GxEPD2::DEPG0266BN
@ DEPG0266BN
Definition
GxEPD2.h:55
GxEPD2::GDEW026M01
@ GDEW026M01
Definition
GxEPD2.h:54
GxEPD2::GDEH0213B73
@ GDEH0213B73
Definition
GxEPD2.h:47
GxEPD2::GDEW075Z09
@ GDEW075Z09
Definition
GxEPD2.h:95
GxEPD2::Waveshare_1_54_bwr
@ Waveshare_1_54_bwr
Definition
GxEPD2.h:80
GxEPD2::Waveshare_2_13_bw_B73
@ Waveshare_2_13_bw_B73
Definition
GxEPD2.h:47
src
drivers
GxEPD2.h
Generated by
1.12.0