forked from ZinggJM/GxEPD2_32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WaveTables.h
282 lines (260 loc) · 9.6 KB
/
WaveTables.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
#ifndef _WaveTables_H_
#define _WaveTables_H_
const uint8_t GDEP015OC1_LUTDefault_full[] =
{
0x32, // command
0x50, 0xAA, 0x55, 0xAA, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
const uint8_t GDEP015OC1_LUTDefault_part[] =
{
0x32, // command
0x10, 0x18, 0x18, 0x08, 0x18, 0x18, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x14, 0x44, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
const uint8_t GxGDE0213B1_LUTDefault_full[] =
{
0x32, // command
0x22, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x01, 0x00, 0x00, 0x00, 0x00
};
const uint8_t GxGDE0213B1_LUTDefault_part[] =
{
0x32, // command
0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x0F, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
const uint8_t GxGDEH029A1_LUTDefault_full[] =
{
0x32, // command
0x50, 0xAA, 0x55, 0xAA, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
const uint8_t GxGDEH029A1_LUTDefault_part[] =
{
0x32, // command
0x10, 0x18, 0x18, 0x08, 0x18, 0x18, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x14, 0x44, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
const uint8_t GxGDEW027W3_lut_20_vcomDC[] =
{
0x00 ,0x00 ,
0x00 ,0x0F ,0x0F ,0x00 ,0x00 ,0x05,
0x00 ,0x32 ,0x32 ,0x00 ,0x00 ,0x02,
0x00 ,0x0F ,0x0F ,0x00 ,0x00 ,0x05,
0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
0x00 ,0x00 ,0x00 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F ,0x00 ,0x00 ,0x05,
0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
};
const uint8_t GxGDEW0154Z04_lut_20_vcom0[] = { 0x0E , 0x14 , 0x01 , 0x0A , 0x06 , 0x04 , 0x0A , 0x0A , 0x0F , 0x03 , 0x03 , 0x0C , 0x06 , 0x0A , 0x00 };
const uint8_t GxGDEW0154Z04_lut_21_w[] = { 0x0E , 0x14 , 0x01 , 0x0A , 0x46 , 0x04 , 0x8A , 0x4A , 0x0F , 0x83 , 0x43 , 0x0C , 0x86 , 0x0A , 0x04 };
const uint8_t GxGDEW0154Z04_lut_22_b[] = { 0x0E , 0x14 , 0x01 , 0x8A , 0x06 , 0x04 , 0x8A , 0x4A , 0x0F , 0x83 , 0x43 , 0x0C , 0x06 , 0x4A , 0x04 };
const uint8_t GxGDEW0154Z04_lut_23_g1[] = { 0x8E , 0x94 , 0x01 , 0x8A , 0x06 , 0x04 , 0x8A , 0x4A , 0x0F , 0x83 , 0x43 , 0x0C , 0x06 , 0x0A , 0x04 };
const uint8_t GxGDEW0154Z04_lut_24_g2[] = { 0x8E , 0x94 , 0x01 , 0x8A , 0x06 , 0x04 , 0x8A , 0x4A , 0x0F , 0x83 , 0x43 , 0x0C , 0x06 , 0x0A , 0x04 };
const uint8_t GxGDEW0154Z04_lut_25_vcom1[] = { 0x03 , 0x1D , 0x01 , 0x01 , 0x08 , 0x23 , 0x37 , 0x37 , 0x01 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 };
const uint8_t GxGDEW0154Z04_lut_26_red0[] = { 0x83 , 0x5D , 0x01 , 0x81 , 0x48 , 0x23 , 0x77 , 0x77 , 0x01 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 };
const uint8_t GxGDEW0154Z04_lut_27_red1[] = { 0x03 , 0x1D , 0x01 , 0x01 , 0x08 , 0x23 , 0x37 , 0x37 , 0x01 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 };
const uint8_t GxGDEW027C44_lut_20_vcomDC[] =
{
0x00 , 0x00,
0x00 , 0x1A , 0x1A , 0x00 , 0x00 , 0x01,
0x00 , 0x0A , 0x0A , 0x00 , 0x00 , 0x08,
0x00 , 0x0E , 0x01 , 0x0E , 0x01 , 0x10,
0x00 , 0x0A , 0x0A , 0x00 , 0x00 , 0x08,
0x00 , 0x04 , 0x10 , 0x00 , 0x00 , 0x05,
0x00 , 0x03 , 0x0E , 0x00 , 0x00 , 0x0A,
0x00 , 0x23 , 0x00 , 0x00 , 0x00 , 0x01
};
//R21H
const uint8_t GxGDEW027C44_lut_21[] = {
0x90 , 0x1A , 0x1A , 0x00 , 0x00 , 0x01,
0x40 , 0x0A , 0x0A , 0x00 , 0x00 , 0x08,
0x84 , 0x0E , 0x01 , 0x0E , 0x01 , 0x10,
0x80 , 0x0A , 0x0A , 0x00 , 0x00 , 0x08,
0x00 , 0x04 , 0x10 , 0x00 , 0x00 , 0x05,
0x00 , 0x03 , 0x0E , 0x00 , 0x00 , 0x0A,
0x00 , 0x23 , 0x00 , 0x00 , 0x00 , 0x01
};
//R22H r
const uint8_t GxGDEW027C44_lut_22_red[] = {
0xA0 , 0x1A , 0x1A , 0x00 , 0x00 , 0x01,
0x00 , 0x0A , 0x0A , 0x00 , 0x00 , 0x08,
0x84 , 0x0E , 0x01 , 0x0E , 0x01 , 0x10,
0x90 , 0x0A , 0x0A , 0x00 , 0x00 , 0x08,
0xB0 , 0x04 , 0x10 , 0x00 , 0x00 , 0x05,
0xB0 , 0x03 , 0x0E , 0x00 , 0x00 , 0x0A,
0xC0 , 0x23 , 0x00 , 0x00 , 0x00 , 0x01
};
//R23H w
const uint8_t GxGDEW027C44_lut_23_white[] = {
0x90 , 0x1A , 0x1A , 0x00 , 0x00 , 0x01,
0x40 , 0x0A , 0x0A , 0x00 , 0x00 , 0x08,
0x84 , 0x0E , 0x01 , 0x0E , 0x01 , 0x10,
0x80 , 0x0A , 0x0A , 0x00 , 0x00 , 0x08,
0x00 , 0x04 , 0x10 , 0x00 , 0x00 , 0x05,
0x00 , 0x03 , 0x0E , 0x00 , 0x00 , 0x0A,
0x00 , 0x23 , 0x00 , 0x00 , 0x00 , 0x01
};
//R24H b
const uint8_t GxGDEW027C44_lut_24_black[] = {
0x90 , 0x1A , 0x1A , 0x00 , 0x00 , 0x01,
0x20 , 0x0A , 0x0A , 0x00 , 0x00 , 0x08,
0x84 , 0x0E , 0x01 , 0x0E , 0x01 , 0x10,
0x10 , 0x0A , 0x0A , 0x00 , 0x00 , 0x08,
0x00 , 0x04 , 0x10 , 0x00 , 0x00 , 0x05,
0x00 , 0x03 , 0x0E , 0x00 , 0x00 , 0x0A,
0x00 , 0x23 , 0x00 , 0x00 , 0x00 , 0x01
};
const unsigned char GxGDEW042T2_lut_20_vcom0_full[] =
{
0x40, 0x17, 0x00, 0x00, 0x00, 0x02,
0x00, 0x17, 0x17, 0x00, 0x00, 0x02,
0x00, 0x0A, 0x01, 0x00, 0x00, 0x01,
0x00, 0x0E, 0x0E, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
const unsigned char GxGDEW042T2_lut_21_ww_full[] =
{
0x40, 0x17, 0x00, 0x00, 0x00, 0x02,
0x90, 0x17, 0x17, 0x00, 0x00, 0x02,
0x40, 0x0A, 0x01, 0x00, 0x00, 0x01,
0xA0, 0x0E, 0x0E, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
const unsigned char GxGDEW042T2_lut_22_bw_full[] =
{
0x40, 0x17, 0x00, 0x00, 0x00, 0x02,
0x90, 0x17, 0x17, 0x00, 0x00, 0x02,
0x40, 0x0A, 0x01, 0x00, 0x00, 0x01,
0xA0, 0x0E, 0x0E, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
const unsigned char GxGDEW042T2_lut_23_wb_full[] =
{
0x80, 0x17, 0x00, 0x00, 0x00, 0x02,
0x90, 0x17, 0x17, 0x00, 0x00, 0x02,
0x80, 0x0A, 0x01, 0x00, 0x00, 0x01,
0x50, 0x0E, 0x0E, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
const unsigned char GxGDEW042T2_lut_24_bb_full[] =
{
0x80, 0x17, 0x00, 0x00, 0x00, 0x02,
0x90, 0x17, 0x17, 0x00, 0x00, 0x02,
0x80, 0x0A, 0x01, 0x00, 0x00, 0x01,
0x50, 0x0E, 0x0E, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
#define TP0A 2 // sustain phase for bb and ww, change phase for bw and wb
#define TP0B 45 // change phase for bw and wb
const unsigned char GxGDEW042T2_lut_20_vcom0_partial[] =
{
0x00,
TP0A, TP0B, 0x01, 0x00, 0x01,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
const unsigned char GxGDEW042T2_lut_21_ww_partial[] =
{
0x80, // 10 00 00 00
TP0A, TP0B, 0x01, 0x00, 0x01,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
const unsigned char GxGDEW042T2_lut_22_bw_partial[] =
{
0xA0, // 10 10 00 00
TP0A, TP0B, 0x01, 0x00, 0x01,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
const unsigned char GxGDEW042T2_lut_23_wb_partial[] =
{
0x50, // 01 01 00 00
TP0A, TP0B, 0x01, 0x00, 0x01,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
const unsigned char GxGDEW042T2_lut_24_bb_partial[] =
{
0x40, // 01 00 00 00
TP0A, TP0B, 0x01, 0x00, 0x01,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
#endif