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
33class GxEPD2
34{
35 public:
36 enum Panel
37 {
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
99 };
100};
101
102#endif
Panel
Definition GxEPD2.h:37
@ Waveshare_4_2_V2_bwr
Definition GxEPD2.h:91
@ Waveshare_1_54_bwr_Z90
Definition GxEPD2.h:81
@ Waveshare_5_83_bw
Definition GxEPD2.h:69
@ ACeP565
Definition GxEPD2.h:94
@ GDEH0154D67
Definition GxEPD2.h:41
@ GDEW029Z10
Definition GxEPD2.h:85
@ GDEW0583Z83
Definition GxEPD2.h:93
@ Waveshare_3_7_bw
Definition GxEPD2.h:66
@ Waveshare_4_2_bwr
Definition GxEPD2.h:90
@ GDEW029T5
Definition GxEPD2.h:57
@ Waveshare_2_9_bw_T5
Definition GxEPD2.h:57
@ GDE0213B1
Definition GxEPD2.h:45
@ GDEY027T91
Definition GxEPD2.h:64
@ DEPG0290BS
Definition GxEPD2.h:62
@ ED060KC1
Definition GxEPD2.h:76
@ Waveshare_1_02_bw
Definition GxEPD2.h:38
@ Waveshare_2_9_bwr
Definition GxEPD2.h:85
@ Waveshare_7_5_bw
Definition GxEPD2.h:71
@ Waveshare_2_7_bwr
Definition GxEPD2.h:89
@ ED037TC1
Definition GxEPD2.h:65
@ Waveshare_2_13_bw_B72
Definition GxEPD2.h:46
@ Waveshare_5_65_7c
Definition GxEPD2.h:94
@ Waveshare_7_5_bw_T7
Definition GxEPD2.h:72
@ GDEW0371W7
Definition GxEPD2.h:66
@ GDEH075Z90
Definition GxEPD2.h:97
@ GDEW026T0
Definition GxEPD2.h:53
@ GDEM029T94
Definition GxEPD2.h:61
@ GDEP015OC1
Definition GxEPD2.h:39
@ GDEW042Z15
Definition GxEPD2.h:90
@ GDEW1248T3
Definition GxEPD2.h:74
@ ED060SCT
Definition GxEPD2.h:75
@ GDEW0583Z21
Definition GxEPD2.h:92
@ GDEQ042Z21
Definition GxEPD2.h:91
@ GDEY0213Z98
Definition GxEPD2.h:84
@ GDEW075Z08
Definition GxEPD2.h:96
@ Waveshare_2_13_flex
Definition GxEPD2.h:49
@ Waveshare_2_13_bwr
Definition GxEPD2.h:82
@ Waveshare_7_5_bwr_Z90
Definition GxEPD2.h:97
@ Waveshare_1_54_bw
Definition GxEPD2.h:39
@ GDEW0213T5D
Definition GxEPD2.h:51
@ GDEM029C90
Definition GxEPD2.h:87
@ GDEW0583T7
Definition GxEPD2.h:69
@ Waveshare_2_13_bw
Definition GxEPD2.h:45
@ GDEY1248Z51
Definition GxEPD2.h:98
@ Waveshare_12_24_bw
Definition GxEPD2.h:74
@ Waveshare_7_5_bwr_Z08
Definition GxEPD2.h:96
@ ED078KC2
Definition GxEPD2.h:77
@ GDEH0213B72
Definition GxEPD2.h:46
@ Waveshare_2_66_bwr
Definition GxEPD2.h:88
@ GDEH116T91
Definition GxEPD2.h:73
@ GDEW027W3
Definition GxEPD2.h:63
@ GDEW0213Z16
Definition GxEPD2.h:82
@ GDEW075T7
Definition GxEPD2.h:72
@ GDEM0213B74
Definition GxEPD2.h:48
@ ES103TC1
Definition GxEPD2.h:78
@ GDEW0154T8
Definition GxEPD2.h:42
@ GDEW075T8
Definition GxEPD2.h:71
@ DEPG0213BN
Definition GxEPD2.h:52
@ Waveshare_2_9_bw
Definition GxEPD2.h:56
@ Waveshare_2_7_bw
Definition GxEPD2.h:63
@ GDEW0154Z04
Definition GxEPD2.h:80
@ GDEW0154M09
Definition GxEPD2.h:43
@ GDEW0102T4
Definition GxEPD2.h:38
@ GDEW0213Z19
Definition GxEPD2.h:83
@ Waveshare_1_54_bw_D67
Definition GxEPD2.h:41
@ GDEW029I6FD
Definition GxEPD2.h:59
@ GDEW0213M21
Definition GxEPD2.h:50
@ GDEW0154M10
Definition GxEPD2.h:44
@ Waveshare_7_5_bwr
Definition GxEPD2.h:95
@ GDEW042T2
Definition GxEPD2.h:67
@ GDEW0583T8
Definition GxEPD2.h:70
@ GDEH029A1
Definition GxEPD2.h:56
@ GDEW029T5D
Definition GxEPD2.h:58
@ Waveshare_5_83_bwr
Definition GxEPD2.h:92
@ GDEW029M06
Definition GxEPD2.h:60
@ GDEH0154Z90
Definition GxEPD2.h:81
@ GDEH029Z13
Definition GxEPD2.h:86
@ Waveshare_4_2_bw
Definition GxEPD2.h:67
@ GDEW042M01
Definition GxEPD2.h:68
@ DEPG0150BN
Definition GxEPD2.h:40
@ Waveshare_2_6_bw
Definition GxEPD2.h:53
@ GDEW0213I5F
Definition GxEPD2.h:49
@ GDEY0266Z90
Definition GxEPD2.h:88
@ GDEW027C44
Definition GxEPD2.h:89
@ DEPG0266BN
Definition GxEPD2.h:55
@ GDEW026M01
Definition GxEPD2.h:54
@ GDEH0213B73
Definition GxEPD2.h:47
@ GDEW075Z09
Definition GxEPD2.h:95
@ Waveshare_1_54_bwr
Definition GxEPD2.h:80
@ Waveshare_2_13_bw_B73
Definition GxEPD2.h:47