mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
LVGL simplify configuration (#21043)
This commit is contained in:
parent
06e352dc19
commit
6ad2c4c945
@ -313,13 +313,9 @@
|
|||||||
#define USE_I2S
|
#define USE_I2S
|
||||||
#define USE_SPI
|
#define USE_SPI
|
||||||
#define USE_LVGL
|
#define USE_LVGL
|
||||||
#define USE_LVGL_HASPMOTA
|
|
||||||
#define USE_LVGL_FREETYPE
|
|
||||||
#undef SET_ESP32_STACK_SIZE
|
#undef SET_ESP32_STACK_SIZE
|
||||||
#define SET_ESP32_STACK_SIZE (24 * 1024)
|
#define SET_ESP32_STACK_SIZE (24 * 1024)
|
||||||
#define USE_LVGL_PNG_DECODER
|
|
||||||
#define USE_DISPLAY
|
#define USE_DISPLAY
|
||||||
#define SHOW_SPLASH
|
|
||||||
#define USE_MPU_ACCEL
|
#define USE_MPU_ACCEL
|
||||||
#define USE_RTC_CHIPS // Enable RTC chip support and NTP server - Select only one
|
#define USE_RTC_CHIPS // Enable RTC chip support and NTP server - Select only one
|
||||||
#define USE_BM8563
|
#define USE_BM8563
|
||||||
|
@ -1201,16 +1201,11 @@ https://rya.nc/tasmota-fingerprint.html"
|
|||||||
// -- LVGL Graphics Library ---------------------------------
|
// -- LVGL Graphics Library ---------------------------------
|
||||||
//#define USE_LVGL // LVGL Engine, requires Berry (+382KB)
|
//#define USE_LVGL // LVGL Engine, requires Berry (+382KB)
|
||||||
#define USE_LVGL_PSRAM // Allocate LVGL memory in PSRAM if PSRAM is connected - this might be slightly slower but leaves main memory intact
|
#define USE_LVGL_PSRAM // Allocate LVGL memory in PSRAM if PSRAM is connected - this might be slightly slower but leaves main memory intact
|
||||||
// #define USE_LVGL_HASPMOTA // Enable OpenHASP compatiblity and Robotocondensed fonts (+90KB flash)
|
#define USE_LVGL_HASPMOTA // Enable OpenHASP compatiblity and Robotocondensed fonts (+90KB flash)
|
||||||
#define USE_LVGL_MAX_SLEEP 10 // max sleep in ms when LVGL is enabled, more than 10ms will make display less responsive
|
#define USE_LVGL_MAX_SLEEP 10 // max sleep in ms when LVGL is enabled, more than 10ms will make display less responsive
|
||||||
#define USE_LVGL_PNG_DECODER // include a PNG image decoder from file system (+16KB)
|
#define USE_LVGL_PNG_DECODER // include a PNG image decoder from file system (+16KB)
|
||||||
//#define USE_LVGL_TOUCHSCREEN // Use virtual touch screen with Berry driver
|
#define USE_LVGL_FREETYPE // Use the FreeType renderer to display fonts using native TTF files in file system (+77KB flash)
|
||||||
//#define USE_LVGL_FREETYPE // Use the FreeType renderer to display fonts using native TTF files in file system (+77KB flash)
|
|
||||||
#define LV_USE_FT_CACHE_MANAGER 1 // define whether glyphs are cached by FreeType library
|
|
||||||
#define USE_LVGL_FREETYPE_MAX_FACES 64 // max number of FreeType faces in cache
|
#define USE_LVGL_FREETYPE_MAX_FACES 64 // max number of FreeType faces in cache
|
||||||
#define USE_LVGL_FREETYPE_MAX_SIZES 4 // max number of sizes in cache
|
|
||||||
#define USE_LVGL_FREETYPE_MAX_BYTES 16*1024 // max bytes in cache
|
|
||||||
#define USE_LVGL_FREETYPE_MAX_BYTES_PSRAM 64*1024 // max bytes in cache when using PSRAM
|
|
||||||
#define USE_LVGL_BG_DEFAULT 0x000000 // Default color for the uninitialized background screen (black)
|
#define USE_LVGL_BG_DEFAULT 0x000000 // Default color for the uninitialized background screen (black)
|
||||||
// Disabling select widgets that will be rarely used in Tasmota (-13KB)
|
// Disabling select widgets that will be rarely used in Tasmota (-13KB)
|
||||||
// Main widgets as defined in LVGL8
|
// Main widgets as defined in LVGL8
|
||||||
|
@ -74,7 +74,7 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void be_ntv_display_touch_update(int32_t touches, int32_t raw_x, int32_t raw_y, int32_t gesture) {
|
void be_ntv_display_touch_update(int32_t touches, int32_t raw_x, int32_t raw_y, int32_t gesture) {
|
||||||
#if defined(USE_LVGL_TOUCHSCREEN) || defined(USE_FT5206) || defined(USE_XPT2046) || defined(USE_GT911) || defined(USE_LILYGO47) || defined(USE_TOUCH_BUTTONS)
|
#if defined(USE_UNIVERSAL_TOUCH) || defined(USE_FT5206) || defined(USE_XPT2046) || defined(USE_GT911) || defined(USE_LILYGO47) || defined(USE_TOUCH_BUTTONS)
|
||||||
Touch_SetStatus(touches, raw_x, raw_y, gesture);
|
Touch_SetStatus(touches, raw_x, raw_y, gesture);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
\*******************************************************************************************/
|
\*******************************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#if defined(USE_LVGL_TOUCHSCREEN) || defined(USE_FT5206) || defined(USE_XPT2046) || defined(USE_GT911) || defined(USE_LILYGO47) || defined(USE_UNIVERSAL_TOUCH) || defined(USE_TOUCH_BUTTONS) || defined(SIMPLE_RES_TOUCH)
|
#if defined(USE_FT5206) || defined(USE_XPT2046) || defined(USE_GT911) || defined(USE_LILYGO47) || defined(USE_UNIVERSAL_TOUCH) || defined(USE_TOUCH_BUTTONS) || defined(SIMPLE_RES_TOUCH)
|
||||||
|
|
||||||
#include <renderer.h>
|
#include <renderer.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user