mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Tweaks for ESP32-S2 #250
This commit is contained in:
parent
a1b9171b49
commit
e0703de170
@ -88,6 +88,8 @@ typedef int16_t lv_coord_t;
|
|||||||
#ifndef LV_MEM_SIZE
|
#ifndef LV_MEM_SIZE
|
||||||
#if defined(ARDUINO_ARCH_ESP8266)
|
#if defined(ARDUINO_ARCH_ESP8266)
|
||||||
# define LV_MEM_SIZE (12 * 1024U) // Minimum 12 Kb
|
# define LV_MEM_SIZE (12 * 1024U) // Minimum 12 Kb
|
||||||
|
#elif defined(ESP32S2)
|
||||||
|
# define LV_MEM_SIZE (20 * 1024U) // 20Kb is much better
|
||||||
#elif defined(ARDUINO_ARCH_ESP32)
|
#elif defined(ARDUINO_ARCH_ESP32)
|
||||||
# define LV_MEM_SIZE (48 * 1024U) // 48Kb is much better
|
# define LV_MEM_SIZE (48 * 1024U) // 48Kb is much better
|
||||||
#else
|
#else
|
||||||
@ -98,6 +100,8 @@ typedef int16_t lv_coord_t;
|
|||||||
#ifndef LV_VDB_SIZE
|
#ifndef LV_VDB_SIZE
|
||||||
#if defined(ARDUINO_ARCH_ESP8266)
|
#if defined(ARDUINO_ARCH_ESP8266)
|
||||||
# define LV_VDB_SIZE (8 * 1024U) // Minimum 8 Kb
|
# define LV_VDB_SIZE (8 * 1024U) // Minimum 8 Kb
|
||||||
|
#elif defined(ESP32S2)
|
||||||
|
# define LV_VDB_SIZE (16 * 1024U) // 16kB draw buffer
|
||||||
#elif defined(ARDUINO_ARCH_ESP32)
|
#elif defined(ARDUINO_ARCH_ESP32)
|
||||||
# define LV_VDB_SIZE (32 * 1024U) // 32kB draw buffer
|
# define LV_VDB_SIZE (32 * 1024U) // 32kB draw buffer
|
||||||
#else
|
#else
|
||||||
|
@ -27,9 +27,7 @@ build_flags =
|
|||||||
-D NO_GLOBAL_HTTPUPDATE ; dont instantiate httpUpdate
|
-D NO_GLOBAL_HTTPUPDATE ; dont instantiate httpUpdate
|
||||||
;-D CONFIG_NEWLIB_NANO_FORMAT
|
;-D CONFIG_NEWLIB_NANO_FORMAT
|
||||||
; -- lvgl build options -----------------------------
|
; -- lvgl build options -----------------------------
|
||||||
-D LV_MEM_SIZE=20480U ; 20kB lvgl memory
|
-D LV_ATTRIBUTE_FAST_MEM= ; smaller RAM doesn't allow for IRAM_ATTR
|
||||||
-D LV_VDB_SIZE=16384U ; 16kB draw buffer
|
|
||||||
-D LV_ATTRIBUTE_FAST_MEM=IRAM_ATTR
|
|
||||||
-D LV_ATTRIBUTE_TASK_HANDLER=IRAM_ATTR
|
-D LV_ATTRIBUTE_TASK_HANDLER=IRAM_ATTR
|
||||||
;-D LV_FS_PC_PATH="//littlefs" ; this needs to match the vfs mount pount
|
;-D LV_FS_PC_PATH="//littlefs" ; this needs to match the vfs mount pount
|
||||||
; -- ArduinoJson build options ----------------------------
|
; -- ArduinoJson build options ----------------------------
|
||||||
@ -71,6 +69,7 @@ lib_ignore =
|
|||||||
lib_deps =
|
lib_deps =
|
||||||
bodmer/TFT_eSPI@2.4.32
|
bodmer/TFT_eSPI@2.4.32
|
||||||
;ESP Async WebServer
|
;ESP Async WebServer
|
||||||
|
git+https://github.com/fvanroie/ConsoleInput.git#dev
|
||||||
|
|
||||||
ps_ram =
|
ps_ram =
|
||||||
-DBOARD_HAS_PSRAM
|
-DBOARD_HAS_PSRAM
|
||||||
|
@ -50,7 +50,7 @@ build_flags =
|
|||||||
-D LGFX_USE_V1=1
|
-D LGFX_USE_V1=1
|
||||||
-D SUPPORT_TRANSACTIONS
|
-D SUPPORT_TRANSACTIONS
|
||||||
-D SPI_TOUCH_FREQUENCY=2500000
|
-D SPI_TOUCH_FREQUENCY=2500000
|
||||||
-D TOUCH_DRIVER=0x6336 ; XPT2046 Resistive SPI touch panel driver
|
-D TOUCH_DRIVER=0x1680 ; GLS1680 Capacitive I2C touch panel driver
|
||||||
|
|
||||||
-D I2C_TOUCH_PORT=0
|
-D I2C_TOUCH_PORT=0
|
||||||
-D I2C_TOUCH_ADDRESS=0
|
-D I2C_TOUCH_ADDRESS=0
|
||||||
@ -62,7 +62,7 @@ lib_deps =
|
|||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
${esp32s2.lib_deps}
|
${esp32s2.lib_deps}
|
||||||
lovyan03/LovyanGFX @ ^0.4.12
|
lovyan03/LovyanGFX @ ^0.4.12
|
||||||
git+https://github.com/aselectroworks/Arduino-FT6336U.git
|
git+https://github.com/arovak/GSL2038.git
|
||||||
|
|
||||||
lib_ignore =
|
lib_ignore =
|
||||||
${env.lib_ignore}
|
${env.lib_ignore}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user