diff --git a/include/LGFX_ESP2432S028RV2.h b/include/LGFX_ESP2432S028RV2.h index 7afb636..7a1c1d7 100644 --- a/include/LGFX_ESP2432S028RV2.h +++ b/include/LGFX_ESP2432S028RV2.h @@ -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 diff --git a/include/LGFX_T_HMI.h b/include/LGFX_T_HMI.h index 9d79079..43b78e9 100644 --- a/include/LGFX_T_HMI.h +++ b/include/LGFX_T_HMI.h @@ -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; diff --git a/include/LGFX_WT_SC01PLUS.h b/include/LGFX_WT_SC01PLUS.h index 637db80..57cae23 100644 --- a/include/LGFX_WT_SC01PLUS.h +++ b/include/LGFX_WT_SC01PLUS.h @@ -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; diff --git a/source/TFTView_320x240.cpp b/source/TFTView_320x240.cpp index 7a3b565..b766a70 100644 --- a/source/TFTView_320x240.cpp +++ b/source/TFTView_320x240.cpp @@ -9,6 +9,7 @@ #include #include #include +#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