ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
st7735.cpp
Go to the documentation of this file.
1#include "st7735.h"
2#include "esphome/core/hal.h"
4#include "esphome/core/log.h"
5
6namespace esphome {
7namespace st7735 {
8
9static const uint8_t ST_CMD_DELAY = 0x80; // special signifier for command lists
10
11static const uint8_t ST77XX_NOP = 0x00;
12static const uint8_t ST77XX_SWRESET = 0x01;
13static const uint8_t ST77XX_RDDID = 0x04;
14static const uint8_t ST77XX_RDDST = 0x09;
15
16static const uint8_t ST77XX_SLPIN = 0x10;
17static const uint8_t ST77XX_SLPOUT = 0x11;
18static const uint8_t ST77XX_PTLON = 0x12;
19static const uint8_t ST77XX_NORON = 0x13;
20
21static const uint8_t ST77XX_INVOFF = 0x20;
22static const uint8_t ST77XX_INVON = 0x21;
23static const uint8_t ST77XX_DISPOFF = 0x28;
24static const uint8_t ST77XX_DISPON = 0x29;
25static const uint8_t ST77XX_CASET = 0x2A;
26static const uint8_t ST77XX_RASET = 0x2B;
27static const uint8_t ST77XX_RAMWR = 0x2C;
28static const uint8_t ST77XX_RAMRD = 0x2E;
29
30static const uint8_t ST77XX_PTLAR = 0x30;
31static const uint8_t ST77XX_TEOFF = 0x34;
32static const uint8_t ST77XX_TEON = 0x35;
33static const uint8_t ST77XX_MADCTL = 0x36;
34static const uint8_t ST77XX_COLMOD = 0x3A;
35
36static const uint8_t ST77XX_MADCTL_MY = 0x80;
37static const uint8_t ST77XX_MADCTL_MX = 0x40;
38static const uint8_t ST77XX_MADCTL_MV = 0x20;
39static const uint8_t ST77XX_MADCTL_ML = 0x10;
40static const uint8_t ST77XX_MADCTL_RGB = 0x00;
41
42static const uint8_t ST77XX_RDID1 = 0xDA;
43static const uint8_t ST77XX_RDID2 = 0xDB;
44static const uint8_t ST77XX_RDID3 = 0xDC;
45static const uint8_t ST77XX_RDID4 = 0xDD;
46
47// Some register settings
48static const uint8_t ST7735_MADCTL_BGR = 0x08;
49
50static const uint8_t ST7735_MADCTL_MH = 0x04;
51
52static const uint8_t ST7735_FRMCTR1 = 0xB1;
53static const uint8_t ST7735_FRMCTR2 = 0xB2;
54static const uint8_t ST7735_FRMCTR3 = 0xB3;
55static const uint8_t ST7735_INVCTR = 0xB4;
56static const uint8_t ST7735_DISSET5 = 0xB6;
57
58static const uint8_t ST7735_PWCTR1 = 0xC0;
59static const uint8_t ST7735_PWCTR2 = 0xC1;
60static const uint8_t ST7735_PWCTR3 = 0xC2;
61static const uint8_t ST7735_PWCTR4 = 0xC3;
62static const uint8_t ST7735_PWCTR5 = 0xC4;
63static const uint8_t ST7735_VMCTR1 = 0xC5;
64
65static const uint8_t ST7735_PWCTR6 = 0xFC;
66
67static const uint8_t ST7735_GMCTRP1 = 0xE0;
68static const uint8_t ST7735_GMCTRN1 = 0xE1;
69
70// clang-format off
71static const uint8_t PROGMEM
72 BCMD[] = { // Init commands for 7735B screens
73 18, // 18 commands in list:
74 ST77XX_SWRESET, ST_CMD_DELAY, // 1: Software reset, no args, w/delay
75 50, // 50 ms delay
76 ST77XX_SLPOUT, ST_CMD_DELAY, // 2: Out of sleep mode, no args, w/delay
77 255, // 255 = max (500 ms) delay
78 ST77XX_COLMOD, 1+ST_CMD_DELAY, // 3: Set color mode, 1 arg + delay:
79 0x05, // 16-bit color
80 10, // 10 ms delay
81 ST7735_FRMCTR1, 3+ST_CMD_DELAY, // 4: Frame rate control, 3 args + delay:
82 0x00, // fastest refresh
83 0x06, // 6 lines front porch
84 0x03, // 3 lines back porch
85 10, // 10 ms delay
86 ST77XX_MADCTL, 1, // 5: Mem access ctl (directions), 1 arg:
87 0x08, // Row/col addr, bottom-top refresh
88 ST7735_DISSET5, 2, // 6: Display settings #5, 2 args:
89 0x15, // 1 clk cycle nonoverlap, 2 cycle gate
90 // rise, 3 cycle osc equalize
91 0x02, // Fix on VTL
92 ST7735_INVCTR, 1, // 7: Display inversion control, 1 arg:
93 0x0, // Line inversion
94 ST7735_PWCTR1, 2+ST_CMD_DELAY, // 8: Power control, 2 args + delay:
95 0x02, // GVDD = 4.7V
96 0x70, // 1.0uA
97 10, // 10 ms delay
98 ST7735_PWCTR2, 1, // 9: Power control, 1 arg, no delay:
99 0x05, // VGH = 14.7V, VGL = -7.35V
100 ST7735_PWCTR3, 2, // 10: Power control, 2 args, no delay:
101 0x01, // Opamp current small
102 0x02, // Boost frequency
103 ST7735_VMCTR1, 2+ST_CMD_DELAY, // 11: Power control, 2 args + delay:
104 0x3C, // VCOMH = 4V
105 0x38, // VCOML = -1.1V
106 10, // 10 ms delay
107 ST7735_PWCTR6, 2, // 12: Power control, 2 args, no delay:
108 0x11, 0x15,
109 ST7735_GMCTRP1,16, // 13: Gamma Adjustments (pos. polarity), 16 args + delay:
110 0x09, 0x16, 0x09, 0x20, // (Not entirely necessary, but provides
111 0x21, 0x1B, 0x13, 0x19, // accurate colors)
112 0x17, 0x15, 0x1E, 0x2B,
113 0x04, 0x05, 0x02, 0x0E,
114 ST7735_GMCTRN1,16+ST_CMD_DELAY, // 14: Gamma Adjustments (neg. polarity), 16 args + delay:
115 0x0B, 0x14, 0x08, 0x1E, // (Not entirely necessary, but provides
116 0x22, 0x1D, 0x18, 0x1E, // accurate colors)
117 0x1B, 0x1A, 0x24, 0x2B,
118 0x06, 0x06, 0x02, 0x0F,
119 10, // 10 ms delay
120 ST77XX_CASET, 4, // 15: Column addr set, 4 args, no delay:
121 0x00, 0x02, // XSTART = 2
122 0x00, 0x81, // XEND = 129
123 ST77XX_RASET, 4, // 16: Row addr set, 4 args, no delay:
124 0x00, 0x02, // XSTART = 1
125 0x00, 0x81, // XEND = 160
126 ST77XX_NORON, ST_CMD_DELAY, // 17: Normal display on, no args, w/delay
127 10, // 10 ms delay
128 ST77XX_DISPON, ST_CMD_DELAY, // 18: Main screen turn on, no args, delay
129 255 }, // 255 = max (500 ms) delay
130
131 RCMD1[] = { // 7735R init, part 1 (red or green tab)
132 15, // 15 commands in list:
133 ST77XX_SWRESET, ST_CMD_DELAY, // 1: Software reset, 0 args, w/delay
134 150, // 150 ms delay
135 ST77XX_SLPOUT, ST_CMD_DELAY, // 2: Out of sleep mode, 0 args, w/delay
136 255, // 500 ms delay
137 ST7735_FRMCTR1, 3, // 3: Framerate ctrl - normal mode, 3 arg:
138 0x01, 0x2C, 0x2D, // Rate = fosc/(1x2+40) * (LINE+2C+2D)
139 ST7735_FRMCTR2, 3, // 4: Framerate ctrl - idle mode, 3 args:
140 0x01, 0x2C, 0x2D, // Rate = fosc/(1x2+40) * (LINE+2C+2D)
141 ST7735_FRMCTR3, 6, // 5: Framerate - partial mode, 6 args:
142 0x01, 0x2C, 0x2D, // Dot inversion mode
143 0x01, 0x2C, 0x2D, // Line inversion mode
144 ST7735_INVCTR, 1, // 6: Display inversion ctrl, 1 arg:
145 0x07, // No inversion
146 ST7735_PWCTR1, 3, // 7: Power control, 3 args, no delay:
147 0xA2,
148 0x02, // -4.6V
149 0x84, // AUTO mode
150 ST7735_PWCTR2, 1, // 8: Power control, 1 arg, no delay:
151 0xC5, // VGH25=2.4C VGSEL=-10 VGH=3 * AVDD
152 ST7735_PWCTR3, 2, // 9: Power control, 2 args, no delay:
153 0x0A, // Opamp current small
154 0x00, // Boost frequency
155 ST7735_PWCTR4, 2, // 10: Power control, 2 args, no delay:
156 0x8A, // BCLK/2,
157 0x2A, // opamp current small & medium low
158 ST7735_PWCTR5, 2, // 11: Power control, 2 args, no delay:
159 0x8A, 0xEE,
160 ST7735_VMCTR1, 1, // 12: Power control, 1 arg, no delay:
161 0x0E,
162 ST77XX_INVOFF, 0, // 13: Don't invert display, no args
163 ST77XX_MADCTL, 1, // 14: Mem access ctl (directions), 1 arg:
164 0xC8, // row/col addr, bottom-top refresh
165 ST77XX_COLMOD, 1, // 15: set color mode, 1 arg, no delay:
166 0x05 }, // 16-bit color
167
168 RCMD2GREEN[] = { // 7735R init, part 2 (green tab only)
169 2, // 2 commands in list:
170 ST77XX_CASET, 4, // 1: Column addr set, 4 args, no delay:
171 0x00, 0x02, // XSTART = 0
172 0x00, 0x7F+0x02, // XEND = 127
173 ST77XX_RASET, 4, // 2: Row addr set, 4 args, no delay:
174 0x00, 0x01, // XSTART = 0
175 0x00, 0x9F+0x01 }, // XEND = 159
176
177 RCMD2RED[] = { // 7735R init, part 2 (red tab only)
178 2, // 2 commands in list:
179 ST77XX_CASET, 4, // 1: Column addr set, 4 args, no delay:
180 0x00, 0x00, // XSTART = 0
181 0x00, 0x7F, // XEND = 127
182 ST77XX_RASET, 4, // 2: Row addr set, 4 args, no delay:
183 0x00, 0x00, // XSTART = 0
184 0x00, 0x9F }, // XEND = 159
185
186 RCMD2GREEN144[] = { // 7735R init, part 2 (green 1.44 tab)
187 2, // 2 commands in list:
188 ST77XX_CASET, 4, // 1: Column addr set, 4 args, no delay:
189 0x00, 0x00, // XSTART = 0
190 0x00, 0x7F, // XEND = 127
191 ST77XX_RASET, 4, // 2: Row addr set, 4 args, no delay:
192 0x00, 0x00, // XSTART = 0
193 0x00, 0x7F }, // XEND = 127
194
195 RCMD2GREEN160X80[] = { // 7735R init, part 2 (mini 160x80)
196 2, // 2 commands in list:
197 ST77XX_CASET, 4, // 1: Column addr set, 4 args, no delay:
198 0x00, 0x00, // XSTART = 0
199 0x00, 0x4F, // XEND = 79
200 ST77XX_RASET, 4, // 2: Row addr set, 4 args, no delay:
201 0x00, 0x00, // XSTART = 0
202 0x00, 0x9F }, // XEND = 159
203
204 RCMD3[] = { // 7735R init, part 3 (red or green tab)
205 4, // 4 commands in list:
206 ST7735_GMCTRP1, 16 , // 1: Gamma Adjustments (pos. polarity), 16 args + delay:
207 0x02, 0x1c, 0x07, 0x12, // (Not entirely necessary, but provides
208 0x37, 0x32, 0x29, 0x2d, // accurate colors)
209 0x29, 0x25, 0x2B, 0x39,
210 0x00, 0x01, 0x03, 0x10,
211 ST7735_GMCTRN1, 16 , // 2: Gamma Adjustments (neg. polarity), 16 args + delay:
212 0x03, 0x1d, 0x07, 0x06, // (Not entirely necessary, but provides
213 0x2E, 0x2C, 0x29, 0x2D, // accurate colors)
214 0x2E, 0x2E, 0x37, 0x3F,
215 0x00, 0x00, 0x02, 0x10,
216 ST77XX_NORON, ST_CMD_DELAY, // 3: Normal display on, no args, w/delay
217 10, // 10 ms delay
218 ST77XX_DISPON, ST_CMD_DELAY, // 4: Main screen turn on, no args w/delay
219 100 }; // 100 ms delay
220
221// clang-format on
222static const char *const TAG = "st7735";
223
224ST7735::ST7735(ST7735Model model, int width, int height, int colstart, int rowstart, bool eightbitcolor, bool usebgr,
225 bool invert_colors)
226 : model_(model),
227 colstart_(colstart),
228 rowstart_(rowstart),
229 eightbitcolor_(eightbitcolor),
230 usebgr_(usebgr),
231 invert_colors_(invert_colors),
232 width_(width),
233 height_(height) {}
234
236 this->spi_setup();
237
238 this->dc_pin_->setup(); // OUTPUT
239 this->cs_->setup(); // OUTPUT
240
241 this->dc_pin_->digital_write(true);
242 this->cs_->digital_write(true);
243
244 this->init_reset_();
245 delay(100); // NOLINT
246
247 ESP_LOGD(TAG, " START");
248 dump_config();
249 ESP_LOGD(TAG, " END");
250
251 display_init_(RCMD1);
252
253 if (this->model_ == INITR_GREENTAB) {
254 display_init_(RCMD2GREEN);
255 colstart_ == 0 ? colstart_ = 2 : colstart_;
256 rowstart_ == 0 ? rowstart_ = 1 : rowstart_;
257 } else if ((this->model_ == INITR_144GREENTAB) || (this->model_ == INITR_HALLOWING)) {
258 height_ == 0 ? height_ = ST7735_TFTHEIGHT_128 : height_;
259 width_ == 0 ? width_ = ST7735_TFTWIDTH_128 : width_;
260 display_init_(RCMD2GREEN144);
261 colstart_ == 0 ? colstart_ = 2 : colstart_;
262 rowstart_ == 0 ? rowstart_ = 3 : rowstart_;
263 } else if (this->model_ == INITR_MINI_160X80) {
264 height_ == 0 ? height_ = ST7735_TFTHEIGHT_160 : height_;
265 width_ == 0 ? width_ = ST7735_TFTWIDTH_80 : width_;
266 display_init_(RCMD2GREEN160X80);
267 colstart_ == 0 ? colstart_ = 24 : colstart_;
268 rowstart_ == 0 ? rowstart_ = 0 : rowstart_;
269 } else {
270 // colstart, rowstart left at default '0' values
271 display_init_(RCMD2RED);
272 }
273 display_init_(RCMD3);
274
275 uint8_t data = 0;
276 if (this->model_ != INITR_HALLOWING) {
277 data = ST77XX_MADCTL_MX | ST77XX_MADCTL_MY;
278 }
279 if (this->usebgr_) {
280 data = data | ST7735_MADCTL_BGR;
281 } else {
282 data = data | ST77XX_MADCTL_RGB;
283 }
284 sendcommand_(ST77XX_MADCTL, &data, 1);
285
286 if (this->invert_colors_)
287 sendcommand_(ST77XX_INVON, nullptr, 0);
288
289 this->init_internal_(this->get_buffer_length());
290 memset(this->buffer_, 0x00, this->get_buffer_length());
291}
292
294 this->do_update_();
295 this->write_display_data_();
296}
297
299
301
303 if (this->eightbitcolor_) {
304 return size_t(this->get_width_internal()) * size_t(this->get_height_internal());
305 }
306 return size_t(this->get_width_internal()) * size_t(this->get_height_internal()) * 2;
307}
308
310 if (x >= this->get_width_internal() || x < 0 || y >= this->get_height_internal() || y < 0)
311 return;
312
313 if (this->eightbitcolor_) {
314 const uint32_t color332 = display::ColorUtil::color_to_332(color);
315 uint16_t pos = (x + y * this->get_width_internal());
316 this->buffer_[pos] = color332;
317 } else {
318 const uint32_t color565 = display::ColorUtil::color_to_565(color);
319 uint16_t pos = (x + y * this->get_width_internal()) * 2;
320 this->buffer_[pos++] = (color565 >> 8) & 0xff;
321 this->buffer_[pos] = color565 & 0xff;
322 }
323}
324
326 if (this->reset_pin_ != nullptr) {
327 this->reset_pin_->setup();
328 this->reset_pin_->digital_write(true);
329 delay(1);
330 // Trigger Reset
331 this->reset_pin_->digital_write(false);
332 delay(10);
333 // Wake up
334 this->reset_pin_->digital_write(true);
335 }
336}
337const char *ST7735::model_str_() {
338 switch (this->model_) {
339 case INITR_GREENTAB:
340 return "ST7735 GREENTAB";
341 case INITR_REDTAB:
342 return "ST7735 REDTAB";
343 case INITR_BLACKTAB:
344 return "ST7735 BLACKTAB";
345 case INITR_MINI_160X80:
346 return "ST7735 MINI160x80";
347 default:
348 return "Unknown";
349 }
350}
351
352void ST7735::display_init_(const uint8_t *addr) {
353 uint8_t num_commands, cmd, num_args;
354 uint16_t ms;
355
356 num_commands = progmem_read_byte(addr++); // Number of commands to follow
357 while (num_commands--) { // For each command...
358 cmd = progmem_read_byte(addr++); // Read command
359 num_args = progmem_read_byte(addr++); // Number of args to follow
360 ms = num_args & ST_CMD_DELAY; // If hibit set, delay follows args
361 num_args &= ~ST_CMD_DELAY; // Mask out delay bit
362 this->sendcommand_(cmd, addr, num_args);
363 addr += num_args;
364
365 if (ms) {
366 ms = progmem_read_byte(addr++); // Read post-command delay time (ms)
367 if (ms == 255)
368 ms = 500; // If 255, delay for 500 ms
369 delay(ms);
370 }
371 }
372}
373
375 LOG_DISPLAY("", "ST7735", this);
376 ESP_LOGCONFIG(TAG, " Model: %s", this->model_str_());
377 LOG_PIN(" CS Pin: ", this->cs_);
378 LOG_PIN(" DC Pin: ", this->dc_pin_);
379 LOG_PIN(" Reset Pin: ", this->reset_pin_);
380 ESP_LOGD(TAG, " Buffer Size: %zu", this->get_buffer_length());
381 ESP_LOGD(TAG, " Height: %d", this->height_);
382 ESP_LOGD(TAG, " Width: %d", this->width_);
383 ESP_LOGD(TAG, " ColStart: %d", this->colstart_);
384 ESP_LOGD(TAG, " RowStart: %d", this->rowstart_);
385 LOG_UPDATE_INTERVAL(this);
386}
387
388void HOT ST7735::writecommand_(uint8_t value) {
389 this->enable();
390 this->dc_pin_->digital_write(false);
391 this->write_byte(value);
392 this->dc_pin_->digital_write(true);
393 this->disable();
394}
395
396void HOT ST7735::writedata_(uint8_t value) {
397 this->dc_pin_->digital_write(true);
398 this->enable();
399 this->write_byte(value);
400 this->disable();
401}
402
403void HOT ST7735::sendcommand_(uint8_t cmd, const uint8_t *data_bytes, uint8_t num_data_bytes) {
404 this->writecommand_(cmd);
405 this->senddata_(data_bytes, num_data_bytes);
406}
407
408void HOT ST7735::senddata_(const uint8_t *data_bytes, uint8_t num_data_bytes) {
409 this->dc_pin_->digital_write(true); // pull DC high to indicate data
410 this->cs_->digital_write(false);
411 this->enable();
412 for (uint8_t i = 0; i < num_data_bytes; i++) {
413 this->write_byte(progmem_read_byte(data_bytes++)); // write byte - SPI library
414 }
415 this->cs_->digital_write(true);
416 this->disable();
417}
418
420 uint16_t offsetx = colstart_;
421 uint16_t offsety = rowstart_;
422
423 uint16_t x1 = offsetx;
424 uint16_t x2 = x1 + get_width_internal() - 1;
425 uint16_t y1 = offsety;
426 uint16_t y2 = y1 + get_height_internal() - 1;
427
428 this->enable();
429
430 // set column(x) address
431 this->dc_pin_->digital_write(false);
432 this->write_byte(ST77XX_CASET);
433 this->dc_pin_->digital_write(true);
434 this->spi_master_write_addr_(x1, x2);
435
436 // set Page(y) address
437 this->dc_pin_->digital_write(false);
438 this->write_byte(ST77XX_RASET);
439 this->dc_pin_->digital_write(true);
440 this->spi_master_write_addr_(y1, y2);
441
442 // Memory Write
443 this->dc_pin_->digital_write(false);
444 this->write_byte(ST77XX_RAMWR);
445 this->dc_pin_->digital_write(true);
446
447 if (this->eightbitcolor_) {
448 for (size_t line = 0; line < this->get_buffer_length(); line = line + this->get_width_internal()) {
449 for (int index = 0; index < this->get_width_internal(); ++index) {
452
453 auto color = display::ColorUtil::color_to_565(color332);
454
455 this->write_byte((color >> 8) & 0xff);
456 this->write_byte(color & 0xff);
457 }
458 }
459 } else {
460 this->write_array(this->buffer_, this->get_buffer_length());
461 }
462 this->disable();
463}
464
465void ST7735::spi_master_write_addr_(uint16_t addr1, uint16_t addr2) {
466 static uint8_t byte[4];
467 byte[0] = (addr1 >> 8) & 0xFF;
468 byte[1] = addr1 & 0xFF;
469 byte[2] = (addr2 >> 8) & 0xFF;
470 byte[3] = addr2 & 0xFF;
471
472 this->dc_pin_->digital_write(true);
473 this->write_array(byte, 4);
474}
475
476void ST7735::spi_master_write_color_(uint16_t color, uint16_t size) {
477 static uint8_t byte[1024];
478 int index = 0;
479 for (int i = 0; i < size; i++) {
480 byte[index++] = (color >> 8) & 0xFF;
481 byte[index++] = color & 0xFF;
482 }
483
484 this->dc_pin_->digital_write(true);
485 write_array(byte, size * 2);
486}
487
488} // namespace st7735
489} // namespace esphome
virtual void setup()=0
virtual void digital_write(bool value)=0
static uint16_t color_to_565(Color color, ColorOrder color_order=ColorOrder::COLOR_ORDER_RGB)
static uint8_t color_to_332(Color color, ColorOrder color_order=ColorOrder::COLOR_ORDER_RGB)
static Color to_color(uint32_t colorcode, ColorOrder color_order, ColorBitness color_bitness=ColorBitness::COLOR_BITNESS_888, bool right_bit_aligned=true)
void init_internal_(uint32_t buffer_length)
void line(int x1, int y1, int x2, int y2, Color color=COLOR_ON)
Draw a straight line from the point [x1,y1] to [x2,y2] with the given color.
Definition display.cpp:19
const char * model_str_()
Definition st7735.cpp:337
void senddata_(const uint8_t *data_bytes, uint8_t num_data_bytes)
Definition st7735.cpp:408
int get_height_internal() override
Definition st7735.cpp:298
GPIOPin * reset_pin_
Definition st7735.h:85
void draw_absolute_pixel_internal(int x, int y, Color color) override
Definition st7735.cpp:309
ST7735Model model_
Definition st7735.h:78
void display_init_(const uint8_t *addr)
Definition st7735.cpp:352
void writecommand_(uint8_t value)
Definition st7735.cpp:388
void writedata_(uint8_t value)
Definition st7735.cpp:396
int get_width_internal() override
Definition st7735.cpp:300
void update() override
Definition st7735.cpp:293
void dump_config() override
Definition st7735.cpp:374
ST7735(ST7735Model model, int width, int height, int colstart, int rowstart, bool eightbitcolor, bool usebgr, bool invert_colors)
Definition st7735.cpp:224
void setup() override
Definition st7735.cpp:235
void spi_master_write_addr_(uint16_t addr1, uint16_t addr2)
Definition st7735.cpp:465
void spi_master_write_color_(uint16_t color, uint16_t size)
Definition st7735.cpp:476
void sendcommand_(uint8_t cmd, const uint8_t *data_bytes, uint8_t num_data_bytes)
Definition st7735.cpp:403
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
void IRAM_ATTR HOT delay(uint32_t ms)
Definition core.cpp:29
uint8_t progmem_read_byte(const uint8_t *addr)
Definition core.cpp:58
uint16_t x
Definition tt21100.cpp:5
uint16_t y
Definition tt21100.cpp:6
const uint8_t ESPHOME_WEBSERVER_INDEX_HTML[] PROGMEM
Definition web_server.h:24