Add esp32-2432s028r-ili9342_4MB

This commit is contained in:
fvanroie 2024-02-27 23:54:55 +01:00
parent e1e2ff3833
commit 5dc9d48c7e
3 changed files with 46 additions and 11 deletions

View File

@ -51,7 +51,7 @@ jobs:
- out: seeed-studios
env: "sensecap-indicator-d1_8MB"
- out: sunton
env: "esp32-2432s028r_4MB -e esp32-2432s028r-st7789_4MB -e esp32-3248s035c_4MB -e esp32-3248s035r_4MB -e sunton-4827s043c_16MB -e sunton-8048s043c_16MB -e sunton-8048s050c_16MB -e sunton-8048s070c_16MB"
env: "esp32-2432s028r_4MB -e esp32-2432s028r-ili9342_4MB -e esp32-2432s028r-st7789_4MB -e esp32-3248s035c_4MB -e esp32-3248s035r_4MB -e sunton-4827s043c_16MB -e sunton-8048s043c_16MB -e sunton-8048s050c_16MB -e sunton-8048s070c_16MB"
- out: waveshare
env: "esp32-one_ili9486 -e esp32-one_st7796"
- out: wireless-tag

View File

@ -639,7 +639,14 @@ void LovyanGfx::init(int w, int h)
_panel_instance->setLight(new Light_M5Tough());
#elif defined(ESP32_2432S028R)
#if defined(ILI9341_DRIVER)
auto _panel_instance = new lgfx::Panel_ILI9341();
#elif defined(ILI9342_DRIVER)
auto _panel_instance = new lgfx::Panel_ILI9342();
#elif defined(ST7789_DRIVER)
auto _panel_instance = new lgfx::Panel_ST7789();
#endif
auto _bus_instance = new lgfx::Bus_SPI();
auto _touch_instance = new lgfx::Touch_XPT2046();
@ -675,7 +682,7 @@ void LovyanGfx::init(int w, int h)
cfg.dummy_read_pixel = 8;
cfg.dummy_read_bits = 1;
cfg.readable = true;
cfg.invert = false;
cfg.invert = INVERT_COLORS;
cfg.rgb_order = false;
cfg.dlen_16bit = false;
cfg.bus_shared = false;

View File

@ -92,3 +92,31 @@ lib_deps =
;${tft_espi.lib_deps}
${lovyangfx.lib_deps}
;${goodix.lib_deps}
[env:esp32-2432s028r-ili9342_4MB]
extends = esp32-2432s028r, flash_4mb
build_flags =
${esp32-2432s028r.build_flags}
-D ILI9342_DRIVER=1
-D INVERT_COLORS=1
-D TOUCH_DRIVER=0x2046 ; XPT2606 Resistive touch panel driver
-D HASP_USE_LGFX_TOUCH=1
-D TOUCH_CS=33
-D TOUCH_SCLK=25
-D TOUCH_MOSI=32
-D TOUCH_MISO=39
-D TOUCH_SDA=-1
-D TOUCH_SCL=-1
-D TOUCH_IRQ=36
-D SPI_FREQUENCY=55000000
-D SPI_TOUCH_FREQUENCY=2500000
; -- Debugging options -----------------------------
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
lib_deps =
${esp32-2432s028r.lib_deps}
;${tft_espi.lib_deps}
${lovyangfx.lib_deps}
;${goodix.lib_deps}