make compiler happy again

This commit is contained in:
mverch67
2024-04-17 20:24:42 +02:00
parent 71c479689a
commit bd26d38c17
4 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ class LGFX_ESP2432S028RV2 : public lgfx::LGFX_Device
cfg.panel_width = screenHeight; // actual displayable width
cfg.panel_height = screenWidth; // actual displayable height
cfg.offset_x = 0; // Panel offset amount in X direction
cfg.offset_y = 0; // Panel offset amount in Y direction
cfg.offset_y = 0; // Panel offset amount in Y direction
cfg.offset_rotation = 6; // Rotation direction value offset 0~7 (4~7 is upside down)
cfg.dummy_read_pixel = 8; // Number of bits for dummy read before pixel readout
cfg.dummy_read_bits = 1; // Number of bits for dummy read before non-pixel data read
+5 -1
View File
@@ -24,7 +24,11 @@ class LGFX_T_HMI : public lgfx::LGFX_Device
{
auto cfg = _bus_instance.config();
cfg.freq_write = SPI_FREQUENCY;
#if CONFIG_IDF_TARGET_ESP32S3
cfg.freq_read = 16000000;
#endif
cfg.pin_rd = -1;
cfg.pin_wr = 8;
cfg.pin_rs = 7;
cfg.pin_d0 = 48;
cfg.pin_d1 = 47;
@@ -53,7 +57,7 @@ class LGFX_T_HMI : public lgfx::LGFX_Device
cfg.dummy_read_pixel = 8;
cfg.dummy_read_bits = 1;
cfg.readable = true;
cfg.invert = true;
cfg.invert = false;
cfg.rgb_order = false;
cfg.dlen_16bit = false;
cfg.bus_shared = true;
+2
View File
@@ -24,7 +24,9 @@ class LGFX_WT_SC01_PLUS : public lgfx::LGFX_Device
{
auto cfg = _bus_instance.config();
cfg.freq_write = SPI_FREQUENCY;
#if CONFIG_IDF_TARGET_ESP32S3
cfg.freq_read = 16000000;
#endif
cfg.pin_wr = 47;
cfg.pin_rd = -1;
cfg.pin_rs = 0;
+1
View File
@@ -9,6 +9,7 @@
#include <cstdio>
#include <functional>
#include <math.h>
#include "Arduino.h"
LV_IMG_DECLARE(ui_img_230282600); // assets/lock-keyhole24-white.png
LV_IMG_DECLARE(ui_img_558997549); // assets/key-round24-white.png