lib: gui: lvgl: align all Kconfig object names
Align all Kconfig option names with LVGL names. The followed rule: LV_(.*) -> CONFIG_LVGL_(.*). Also replaced LVGL boolean configuration entries using if/else/endif with direct IS_ENABLED macro. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
6c294bc0b8
commit
4f86a9a2d5
19 changed files with 394 additions and 771 deletions
|
@ -64,10 +64,10 @@ config LVGL_POINTER_KSCAN
|
|||
config LVGL_POINTER_KSCAN_DEV_NAME
|
||||
default "FT5336"
|
||||
|
||||
config LVGL_HOR_RES
|
||||
config LVGL_HOR_RES_MAX
|
||||
default 480
|
||||
|
||||
config LVGL_VER_RES
|
||||
config LVGL_VER_RES_MAX
|
||||
default 272
|
||||
|
||||
config LVGL_VDB_SIZE
|
||||
|
|
|
@ -61,10 +61,10 @@ config LVGL_POINTER_KSCAN
|
|||
config LVGL_POINTER_KSCAN_DEV_NAME
|
||||
default "FT5336"
|
||||
|
||||
config LVGL_HOR_RES
|
||||
config LVGL_HOR_RES_MAX
|
||||
default 480
|
||||
|
||||
config LVGL_VER_RES
|
||||
config LVGL_VER_RES_MAX
|
||||
default 272
|
||||
|
||||
config LVGL_VDB_SIZE
|
||||
|
|
|
@ -60,10 +60,10 @@ config LVGL_POINTER_KSCAN
|
|||
config LVGL_POINTER_KSCAN_DEV_NAME
|
||||
default "FT5336"
|
||||
|
||||
config LVGL_HOR_RES
|
||||
config LVGL_HOR_RES_MAX
|
||||
default 480
|
||||
|
||||
config LVGL_VER_RES
|
||||
config LVGL_VER_RES_MAX
|
||||
default 272
|
||||
|
||||
config LVGL_VDB_SIZE
|
||||
|
|
|
@ -33,10 +33,10 @@ if LVGL
|
|||
config LVGL_DISPLAY_DEV_NAME
|
||||
default "ILI9340"
|
||||
|
||||
config LVGL_HOR_RES
|
||||
config LVGL_HOR_RES_MAX
|
||||
default 320
|
||||
|
||||
config LVGL_VER_RES
|
||||
config LVGL_VER_RES_MAX
|
||||
default 240
|
||||
|
||||
config LVGL_VDB_SIZE
|
||||
|
|
|
@ -20,10 +20,10 @@ if LVGL
|
|||
config LVGL_DISPLAY_DEV_NAME
|
||||
default "SSD1306"
|
||||
|
||||
config LVGL_HOR_RES
|
||||
config LVGL_HOR_RES_MAX
|
||||
default 128
|
||||
|
||||
config LVGL_VER_RES
|
||||
config LVGL_VER_RES_MAX
|
||||
default 32 if SHIELD_SSD1306_128X32
|
||||
default 64
|
||||
|
||||
|
|
|
@ -21,11 +21,11 @@ if LVGL
|
|||
config LVGL_DISPLAY_DEV_NAME
|
||||
default "ST7789V"
|
||||
|
||||
config LVGL_HOR_RES
|
||||
config LVGL_HOR_RES_MAX
|
||||
default 320 if SHIELD_ST7789V_TL019FQV01
|
||||
default 240 if SHIELD_ST7789V_WAVESHARE_240X240
|
||||
|
||||
config LVGL_VER_RES
|
||||
config LVGL_VER_RES_MAX
|
||||
default 170 if SHIELD_ST7789V_TL019FQV01
|
||||
default 240 if SHIELD_ST7789V_WAVESHARE_240X240
|
||||
|
||||
|
|
|
@ -28,14 +28,14 @@ config LVGL_DISPLAY_DEV_NAME
|
|||
default "GD7965" if SHIELD_WAVESHARE_EPAPER_GDEW075T7
|
||||
default "SSD16XX"
|
||||
|
||||
config LVGL_HOR_RES
|
||||
config LVGL_HOR_RES_MAX
|
||||
default 296 if SHIELD_WAVESHARE_EPAPER_GDEH029A1
|
||||
default 250 if SHIELD_WAVESHARE_EPAPER_GDEH0213B1
|
||||
default 250 if SHIELD_WAVESHARE_EPAPER_GDEH0213B72
|
||||
default 800 if SHIELD_WAVESHARE_EPAPER_GDEW075T7
|
||||
default 200 if SHIELD_WAVESHARE_EPAPER_GDEH0154A07
|
||||
|
||||
config LVGL_VER_RES
|
||||
config LVGL_VER_RES_MAX
|
||||
default 128 if SHIELD_WAVESHARE_EPAPER_GDEH029A1
|
||||
default 120 if SHIELD_WAVESHARE_EPAPER_GDEH0213B1
|
||||
default 120 if SHIELD_WAVESHARE_EPAPER_GDEH0213B72
|
||||
|
|
|
@ -12,7 +12,7 @@ zephyr_library_sources(lvgl_display_16bit.c)
|
|||
zephyr_library_sources(lvgl_display_24bit.c)
|
||||
zephyr_library_sources(lvgl_display_32bit.c)
|
||||
|
||||
zephyr_library_sources_ifdef( CONFIG_LVGL_FILESYSTEM
|
||||
zephyr_library_sources_ifdef( CONFIG_LVGL_USE_FILESYSTEM
|
||||
lvgl_fs.c
|
||||
)
|
||||
|
||||
|
|
|
@ -40,13 +40,13 @@ config LVGL_POINTER_KSCAN_MSGQ_COUNT
|
|||
|
||||
endif # LVGL_POINTER_KSCAN
|
||||
|
||||
config LVGL_HOR_RES
|
||||
config LVGL_HOR_RES_MAX
|
||||
int "Horizontal Screen Resolution"
|
||||
default 480
|
||||
help
|
||||
Horizontal screen resolution in pixels
|
||||
|
||||
config LVGL_VER_RES
|
||||
config LVGL_VER_RES_MAX
|
||||
int "Vertical Screen Resolution"
|
||||
default 320
|
||||
help
|
||||
|
@ -121,40 +121,40 @@ config LVGL_COLOR_SCREEN_TRANSP
|
|||
|
||||
choice
|
||||
prompt "Chroma key color"
|
||||
default LVGL_CHROMA_KEY_GREEN
|
||||
default LVGL_COLOR_TRANSP_GREEN
|
||||
help
|
||||
Color to to use as chroma key
|
||||
|
||||
config LVGL_CHROMA_KEY_RED
|
||||
config LVGL_COLOR_TRANSP_RED
|
||||
bool "Red"
|
||||
|
||||
config LVGL_CHROMA_KEY_GREEN
|
||||
config LVGL_COLOR_TRANSP_GREEN
|
||||
bool "Green"
|
||||
|
||||
config LVGL_CHROMA_KEY_BLUE
|
||||
config LVGL_COLOR_TRANSP_BLUE
|
||||
bool "Blue"
|
||||
|
||||
config LVGL_CHROMA_KEY_CUSTOM
|
||||
config LVGL_COLOR_TRANSP_CUSTOM
|
||||
bool "Custom"
|
||||
|
||||
endchoice
|
||||
|
||||
if LVGL_CHROMA_KEY_CUSTOM
|
||||
config LVGL_CUSTOM_CHROMA_KEY_RED
|
||||
if LVGL_COLOR_TRANSP_CUSTOM
|
||||
config LVGL_CUSTOM_COLOR_TRANSP_RED
|
||||
hex "Chroma Key Red"
|
||||
range 0x00 0xFF
|
||||
default 0x00
|
||||
help
|
||||
Value of the color red to be used in the chroma key
|
||||
|
||||
config LVGL_CUSTOM_CHROMA_KEY_GREEN
|
||||
config LVGL_CUSTOM_COLOR_TRANSP_GREEN
|
||||
hex "Chroma Key Green"
|
||||
range 0x00 0xFF
|
||||
default 0xFF
|
||||
help
|
||||
Value of the color green to be used in the chroma key
|
||||
|
||||
config LVGL_CUSTOM_CHROMA_KEY_BLUE
|
||||
config LVGL_CUSTOM_COLOR_TRANSP_BLUE
|
||||
hex "Chroma Key Blue"
|
||||
range 0x00 0xFF
|
||||
default 0x00
|
||||
|
@ -253,25 +253,25 @@ config LVGL_BUFFER_ALLOC_DYNAMIC
|
|||
|
||||
endchoice
|
||||
|
||||
config LVGL_SCREEN_REFRESH_PERIOD
|
||||
config LVGL_DISP_DEF_REFR_PERIOD
|
||||
int "Screen refresh period"
|
||||
default 30
|
||||
help
|
||||
Screen refresh period in milliseconds
|
||||
|
||||
config LVGL_INPUT_REFRESH_PERIOD
|
||||
config LVGL_INDEV_DEF_READ_PERIOD
|
||||
int "Input device refresh period"
|
||||
default 30
|
||||
help
|
||||
Refresh period for input devices in milliseconds
|
||||
|
||||
config LVGL_INPUT_DRAG_THRESHOLD
|
||||
config LVGL_INDEV_DEF_DRAG_LIMIT
|
||||
int "Drag Threshold"
|
||||
default 10
|
||||
help
|
||||
Threshold in pixels before entering drag mode
|
||||
|
||||
config LVGL_INPUT_DRAG_THROW_SLOW_DOWN
|
||||
config LVGL_INDEV_DEF_DRAG_THROW
|
||||
int "Drag throw slow-down"
|
||||
default 10
|
||||
range 0 100
|
||||
|
@ -279,26 +279,26 @@ config LVGL_INPUT_DRAG_THROW_SLOW_DOWN
|
|||
Percentage of slow down of a throw following a drag.
|
||||
Greater percentage means faster slow-down.
|
||||
|
||||
config LVGL_INPUT_LONG_PRESS_TIME
|
||||
config LVGL_INDEV_DEF_LONG_PRESS_TIME
|
||||
int "Long press time"
|
||||
default 400
|
||||
help
|
||||
Period in milliseconds before a press is seen as a long press
|
||||
|
||||
config LVGL_INPUT_LONG_RESS_REPEAT_TIME
|
||||
config LVGL_INDEV_DEF_LONG_PRESS_REP_TIME
|
||||
int "Long press repeat time"
|
||||
default 100
|
||||
help
|
||||
Period in milliseconds after which a new trigger is generated
|
||||
for a long press
|
||||
|
||||
config LVGL_INPUT_GESTURE_LIMIT
|
||||
config LVGL_INDEV_DEF_GESTURE_LIMIT
|
||||
int "Gesture threshold"
|
||||
default 50
|
||||
help
|
||||
Gesture threshold in pixels
|
||||
|
||||
config LVGL_INPUT_GESTURE_MIN_VELOCITY
|
||||
config LVGL_INDEV_DEF_GESTURE_MIN_VELOCITY
|
||||
int "Gesture minimum velocity"
|
||||
default 3
|
||||
help
|
||||
|
@ -316,13 +316,13 @@ config LVGL_TXT_ENC_UTF8
|
|||
|
||||
endchoice
|
||||
|
||||
config LVGL_TEXT_BREAK_CHARACTERS
|
||||
config LVGL_TXT_BREAK_CHARS
|
||||
string "Text break characters"
|
||||
default " ,.;:-_"
|
||||
help
|
||||
Characters on which a text break can take place
|
||||
|
||||
config LVGL_TEXT_LINE_BREAK_LONG_LEN
|
||||
config LVGL_TXT_LINE_BREAK_LONG_LEN
|
||||
int "Minimal word length for line break"
|
||||
default 0
|
||||
help
|
||||
|
@ -330,27 +330,27 @@ config LVGL_TEXT_LINE_BREAK_LONG_LEN
|
|||
|
||||
If the length is 0, no line break is allowed in the middle of a word.
|
||||
|
||||
config LVGL_TEXT_LINE_BREAK_LONG_PRE_MIN_LEN
|
||||
config LVGL_TXT_LINE_BREAK_LONG_PRE_MIN_LEN
|
||||
int "Minimal number of characters on line before line break"
|
||||
default 3
|
||||
help
|
||||
Minimal number of characters to place on a line before a line break
|
||||
in the middle of a word can occur.
|
||||
|
||||
config LVGL_TEXT_LINE_BREAK_LONG_POST_MIN_LEN
|
||||
config LVGL_TXT_LINE_BREAK_LONG_POST_MIN_LEN
|
||||
int "Minimal number of characters on line after line break"
|
||||
default 3
|
||||
help
|
||||
Minimal number of characters to place on a line after a line break
|
||||
occurred in the middle of a word.
|
||||
|
||||
config LVGL_TEXT_COLOR_CMD
|
||||
config LVGL_TXT_COLOR_CMD
|
||||
string "Text recoloring control character"
|
||||
default "#"
|
||||
help
|
||||
Control character to use for signalling text recoloring
|
||||
|
||||
config LVGL_TEXT_USE_BIDI
|
||||
config LVGL_USE_BIDI
|
||||
bool "Enable bidirectional text support"
|
||||
help
|
||||
Enable bidirectional text support
|
||||
|
@ -359,25 +359,25 @@ config LVGL_TEXT_USE_BIDI
|
|||
Unicode Bidirectional Algorithm:
|
||||
https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/
|
||||
|
||||
choice LVGL_TEXT_BIDI_MODE
|
||||
choice LVGL_BIDI_MODE
|
||||
prompt "Bidirectional text processing direction"
|
||||
default LVGL_TEXT_BIDI_DIR_AUTO
|
||||
depends on LVGL_TEXT_USE_BIDI
|
||||
default LVGL_BIDI_DIR_AUTO
|
||||
depends on LVGL_USE_BIDI
|
||||
help
|
||||
Direction of bidirectional text processing
|
||||
|
||||
config LVGL_TEXT_BIDI_DIR_AUTO
|
||||
config LVGL_BIDI_DIR_AUTO
|
||||
bool "Automatically detect direction"
|
||||
|
||||
config LVGL_TEXT_BIDI_DIR_LTR
|
||||
config LVGL_BIDI_DIR_LTR
|
||||
bool "Left-to-right"
|
||||
|
||||
config LVGL_TEXT_BIDI_DIR_RTL
|
||||
config LVGL_BIDI_DIR_RTL
|
||||
bool "Right-to-left"
|
||||
|
||||
endchoice
|
||||
|
||||
config LVGL_TEXT_ARABIC_PERSIAN_CHARS
|
||||
config LVGL_USE_ARABIC_PERSIAN_CHARS
|
||||
bool "Enable Arabic/Persian processing"
|
||||
help
|
||||
Enable Arabic/Persian processing
|
||||
|
@ -390,47 +390,47 @@ config LVGL_ANTIALIAS
|
|||
help
|
||||
Enable anti-aliasing
|
||||
|
||||
config LVGL_ANIMATION
|
||||
config LVGL_USE_ANIMATION
|
||||
bool "Enable animations"
|
||||
help
|
||||
Enable animations
|
||||
|
||||
config LVGL_SHADOW
|
||||
config LVGL_USE_SHADOW
|
||||
bool "Enable shadows"
|
||||
help
|
||||
Enable shadows
|
||||
|
||||
config LVGL_SHADOW_CACHE_SIZE
|
||||
int "Shadow cache size"
|
||||
depends on LVGL_SHADOW
|
||||
depends on LVGL_USE_SHADOW
|
||||
default 0
|
||||
help
|
||||
Allow buffering some shadow calculation. This parameter is the maximum
|
||||
shadow size to buffer.
|
||||
|
||||
config LVGL_BLEND_MODES
|
||||
config LVGL_USE_BLEND_MODES
|
||||
bool "Enable other blend modes"
|
||||
help
|
||||
Use other blend modes than normal
|
||||
|
||||
config LVGL_OPA_SCALE
|
||||
config LVGL_USE_OPA_SCALE
|
||||
bool "Enable opa_scale style property"
|
||||
help
|
||||
Use the opa_scale style property to set the opacity of an object and
|
||||
its children at once
|
||||
|
||||
config LVGL_IMG_TRANSFORM
|
||||
config LVGL_USE_IMG_TRANSFORM
|
||||
bool "Enable image transformations"
|
||||
help
|
||||
Use image zoom and rotation
|
||||
|
||||
config LVGL_GROUP
|
||||
config LVGL_USE_GROUP
|
||||
bool "Enable group support"
|
||||
help
|
||||
Enable group support.
|
||||
Used by keyboard and button input
|
||||
|
||||
config LVGL_GPU
|
||||
config LVGL_USE_GPU
|
||||
bool "Enable GPU support"
|
||||
help
|
||||
Enable GPU support
|
||||
|
@ -447,19 +447,19 @@ config LVGL_IMG_CF_ALPHA
|
|||
help
|
||||
Enable support for alpha indexed images
|
||||
|
||||
config LVGL_FILESYSTEM
|
||||
config LVGL_USE_FILESYSTEM
|
||||
bool "Enable file system"
|
||||
depends on FILE_SYSTEM
|
||||
default y if FILE_SYSTEM
|
||||
help
|
||||
Enable LittlevGL file system
|
||||
|
||||
config LVGL_PERF_MONITOR
|
||||
config LVGL_USE_PERF_MONITOR
|
||||
bool "Enable performance monitor"
|
||||
help
|
||||
Show CPU usage and FPS count in the right bottom corner
|
||||
|
||||
config LVGL_API_EXTENSION_V6
|
||||
config LVGL_USE_API_EXTENSION_V6
|
||||
bool "Enable V6 API extensions"
|
||||
help
|
||||
Use the functions and types from the older API if possible
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
menu "Objects"
|
||||
|
||||
config LVGL_OBJ_REALIGN
|
||||
config LVGL_USE_OBJ_REALIGN
|
||||
bool "Object realign support"
|
||||
help
|
||||
Enable object realign support
|
||||
|
@ -22,140 +22,140 @@ choice
|
|||
bool "Full flexibility"
|
||||
endchoice
|
||||
|
||||
config LVGL_OBJ_LABEL
|
||||
config LVGL_USE_LABEL
|
||||
bool "Label Object"
|
||||
help
|
||||
Enable label support
|
||||
|
||||
if LVGL_OBJ_LABEL
|
||||
if LVGL_USE_LABEL
|
||||
|
||||
config LVGL_OBJ_LABEL_SCROLL_SPEED
|
||||
config LVGL_LABEL_DEF_SCROLL_SPEED
|
||||
int "Label scroll speed"
|
||||
default 25
|
||||
help
|
||||
Scroll speed in pixels per second if scroll mode is enabled for a label
|
||||
|
||||
config LVGL_OBJ_LABEL_TEXT_SEL
|
||||
config LVGL_LABEL_TEXT_SEL
|
||||
bool "Enable label text selection"
|
||||
help
|
||||
Enable label text selection
|
||||
|
||||
config LVGL_OBJ_LABEL_WAIT_CHAR_COUNT
|
||||
config LVGL_LABEL_WAIT_CHAR_COUNT
|
||||
int "Waiting period for label animation"
|
||||
default 3
|
||||
help
|
||||
Waiting period at beginning/end of the label animation cycle
|
||||
|
||||
config LVGL_OBJ_LABEL_LONG_TXT_HINT
|
||||
config LVGL_LABEL_LONG_TXT_HINT
|
||||
bool "Enable long text hint for labels"
|
||||
help
|
||||
Enable support for long text hints
|
||||
|
||||
endif # LVGL_OBJ_LABEL
|
||||
endif # LVGL_USE_LABEL
|
||||
|
||||
config LVGL_OBJ_IMAGE
|
||||
config LVGL_USE_IMG
|
||||
bool "Image Object"
|
||||
depends on LVGL_OBJ_LABEL
|
||||
depends on LVGL_USE_LABEL
|
||||
help
|
||||
Enable image object support
|
||||
|
||||
if LVGL_OBJ_LED
|
||||
if LVGL_USE_LED
|
||||
|
||||
config LVGL_OBJ_LED_BRIGHT_MIN
|
||||
config LVGL_LED_BRIGHT_MIN
|
||||
int "LED minimum brightness"
|
||||
default 120
|
||||
help
|
||||
LED minimum brightness
|
||||
|
||||
config LVGL_OBJ_LED_BRIGHT_MAX
|
||||
config LVGL_LED_BRIGHT_MAX
|
||||
int "LED maximum brightness"
|
||||
default 255
|
||||
help
|
||||
LED maximum brightness
|
||||
|
||||
endif # LVGL_OBJ_LED
|
||||
endif # LVGL_USE_LED
|
||||
|
||||
config LVGL_OBJ_LINE
|
||||
config LVGL_USE_LINE
|
||||
bool "Line Object"
|
||||
help
|
||||
Enable line object support
|
||||
|
||||
config LVGL_OBJ_ARC
|
||||
config LVGL_USE_ARC
|
||||
bool "Arc Object"
|
||||
help
|
||||
Enable arc object support
|
||||
|
||||
config LVGL_OBJ_CONTAINER
|
||||
config LVGL_USE_CONT
|
||||
bool "Container Object"
|
||||
help
|
||||
Enable container object support
|
||||
|
||||
config LVGL_OBJ_PAGE
|
||||
config LVGL_USE_PAGE
|
||||
bool "Page object"
|
||||
depends on LVGL_OBJ_CONTAINER
|
||||
depends on LVGL_USE_CONT
|
||||
help
|
||||
Enable page object support
|
||||
|
||||
config LVGL_OBJ_PAGE_DEF_ANIM_TIME
|
||||
config LVGL_PAGE_DEF_ANIM_TIME
|
||||
int "Default page focus animation time"
|
||||
default 400
|
||||
depends on LVGL_OBJ_PAGE
|
||||
depends on LVGL_USE_PAGE
|
||||
help
|
||||
Default page focus animation time in milliseconds
|
||||
|
||||
config LVGL_OBJ_WINDOW
|
||||
config LVGL_USE_WIN
|
||||
bool "Window object"
|
||||
depends on LVGL_OBJ_CONTAINER && LVGL_OBJ_BUTTON && LVGL_OBJ_LABEL && LVGL_OBJ_IMAGE && LVGL_OBJ_PAGE
|
||||
depends on LVGL_USE_CONT && LVGL_USE_BTN && LVGL_USE_LABEL && LVGL_USE_IMG && LVGL_USE_PAGE
|
||||
help
|
||||
Enable window object support
|
||||
|
||||
config LVGL_OBJ_TAB_VIEW
|
||||
config LVGL_USE_TABVIEW
|
||||
bool "Tab view object"
|
||||
depends on LVGL_OBJ_PAGE && LVGL_OBJ_BUTTON_MATRIX
|
||||
depends on LVGL_USE_PAGE && LVGL_USE_BTNMATRIX
|
||||
help
|
||||
Enable tab view object support
|
||||
|
||||
config LVGL_OBJ_TAB_VIEW_ANIMATION_TIME
|
||||
config LVGL_TABVIEW_DEF_ANIM_TIME
|
||||
int "Tab view animation time"
|
||||
default 300
|
||||
depends on LVGL_OBJ_TAB_VIEW
|
||||
depends on LVGL_USE_TABVIEW
|
||||
help
|
||||
Tab view animation time in milliseconds
|
||||
|
||||
config LVGL_OBJ_TILE_VIEW
|
||||
config LVGL_USE_TILEVIEW
|
||||
bool "Tile view object"
|
||||
depends on LVGL_OBJ_PAGE
|
||||
depends on LVGL_USE_PAGE
|
||||
help
|
||||
Enable tile view object support
|
||||
|
||||
config LVGL_OBJ_TILE_VIEW_ANIMATION_TIME
|
||||
config LVGL_TILEVIEW_DEF_ANIM_TIME
|
||||
int "Tile view animation time"
|
||||
default 300
|
||||
depends on LVGL_OBJ_TILE_VIEW
|
||||
depends on LVGL_USE_TILEVIEW
|
||||
help
|
||||
Tile view animation time in milliseconds
|
||||
|
||||
config LVGL_OBJ_CALENDAR
|
||||
config LVGL_USE_CALENDAR
|
||||
bool "Calendar object"
|
||||
help
|
||||
Enable calendar object support
|
||||
|
||||
config LVGL_OBJ_SPINNER
|
||||
config LVGL_USE_SPINNER
|
||||
bool "Spinner object"
|
||||
depends on LVGL_OBJ_ARC
|
||||
depends on LVGL_USE_ARC
|
||||
help
|
||||
Enable spinner object support
|
||||
|
||||
if LVGL_OBJ_SPINNER
|
||||
if LVGL_USE_SPINNER
|
||||
|
||||
config LVGL_OBJ_SPINNER_DEF_ARC_LENGTH
|
||||
config LVGL_SPINNER_DEF_ARC_LENGTH
|
||||
int "Default arc length"
|
||||
range 1 360
|
||||
default 60
|
||||
help
|
||||
Default arc length for spinner in degrees
|
||||
|
||||
config LVGL_OBJ_SPINNER_DEF_SPIN_TIME
|
||||
config LVGL_SPINNER_DEF_SPIN_TIME
|
||||
int "Default spin time"
|
||||
default 1000
|
||||
help
|
||||
|
@ -163,208 +163,208 @@ config LVGL_OBJ_SPINNER_DEF_SPIN_TIME
|
|||
|
||||
choice
|
||||
prompt "Default spinner animation type"
|
||||
default LVGL_OBJ_SPINNER_DEF_ANIM_SPINNING_ARC
|
||||
default LVGL_SPINNER_DEF_ANIM_SPINNING_ARC
|
||||
help
|
||||
Default spinner animation type
|
||||
|
||||
config LVGL_OBJ_SPINNER_DEF_ANIM_SPINNING_ARC
|
||||
config LVGL_SPINNER_DEF_ANIM_SPINNING_ARC
|
||||
bool "Spinning arc"
|
||||
|
||||
config LVGL_OBJ_SPINNER_DEF_ANIM_FILLSPIN_ARC
|
||||
config LVGL_SPINNER_DEF_ANIM_FILLSPIN_ARC
|
||||
bool "Fill spin arc"
|
||||
|
||||
config LVGL_OBJ_SPINNER_DEF_ANIM_CONSTANT_ARC
|
||||
config LVGL_SPINNER_DEF_ANIM_CONSTANT_ARC
|
||||
bool "Constant arc"
|
||||
endchoice
|
||||
|
||||
endif # LVGL_OBJ_SPINNER
|
||||
endif # LVGL_USE_SPINNER
|
||||
|
||||
|
||||
config LVGL_OBJ_CANVAS
|
||||
config LVGL_USE_CANVAS
|
||||
bool "Canvas object"
|
||||
depends on LVGL_OBJ_IMAGE
|
||||
depends on LVGL_USE_IMG
|
||||
help
|
||||
Enabled canvas object support
|
||||
|
||||
config LVGL_OBJ_BAR
|
||||
config LVGL_USE_BAR
|
||||
bool "Bar object"
|
||||
help
|
||||
Enable bar object support
|
||||
|
||||
config LVGL_OBJ_LINE_METER
|
||||
config LVGL_USE_LINEMETER
|
||||
bool "Line meter object"
|
||||
help
|
||||
Enable line meter object support
|
||||
|
||||
if LVGL_OBJ_LINE_METER
|
||||
if LVGL_USE_LINEMETER
|
||||
|
||||
choice
|
||||
prompt "Line meter drawing precision"
|
||||
default LVGL_OBJ_LINE_METER_PRECISE_NO_EXTRA
|
||||
default LVGL_LINEMETER_PRECISE_NO_EXTRA
|
||||
|
||||
config LVGL_OBJ_LINE_METER_PRECISE_NO_EXTRA
|
||||
config LVGL_LINEMETER_PRECISE_NO_EXTRA
|
||||
bool "No extra precision"
|
||||
|
||||
config LVGL_OBJ_LINE_METER_PRECISE_SOME_EXTRA
|
||||
config LVGL_LINEMETER_PRECISE_SOME_EXTRA
|
||||
bool "Some extra precision"
|
||||
|
||||
config LVGL_OBJ_LINE_METER_PRECISE_BEST
|
||||
config LVGL_LINEMETER_PRECISE_BEST
|
||||
bool "Best precision"
|
||||
endchoice
|
||||
|
||||
endif # LVGL_OBJ_LINE_METER
|
||||
endif # LVGL_USE_LINEMETER
|
||||
|
||||
config LVGL_OBJ_GAUGE
|
||||
config LVGL_USE_GAUGE
|
||||
bool "Gauge object"
|
||||
depends on LVGL_OBJ_BAR && LVGL_OBJ_LINE_METER
|
||||
depends on LVGL_USE_BAR && LVGL_USE_LINEMETER
|
||||
help
|
||||
Enable gauge object support
|
||||
|
||||
config LVGL_OBJ_CHART
|
||||
config LVGL_USE_CHART
|
||||
bool "Chart object"
|
||||
help
|
||||
Enable chart object support
|
||||
|
||||
config LVGL_OBJ_CHART_AXIS_TICK_LABEL_MAX_LEN
|
||||
config LVGL_CHART_AXIS_TICK_LABEL_MAX_LEN
|
||||
int "Maximum length of axis label"
|
||||
default 256
|
||||
depends on LVGL_OBJ_CHART
|
||||
depends on LVGL_USE_CHART
|
||||
help
|
||||
Maximum length of axis label
|
||||
|
||||
config LVGL_OBJ_TABLE
|
||||
config LVGL_USE_TABLE
|
||||
bool "Table object"
|
||||
depends on LVGL_OBJ_LABEL
|
||||
depends on LVGL_USE_LABEL
|
||||
help
|
||||
Enable table object support
|
||||
|
||||
config LVGL_OBJ_TABLE_COLUMN_MAX
|
||||
config LVGL_TABLE_COL_MAX
|
||||
int "Maximum number of table columns"
|
||||
default 12
|
||||
depends on LVGL_OBJ_TABLE
|
||||
depends on LVGL_USE_TABLE
|
||||
help
|
||||
Maximum number of columns to support in a table
|
||||
|
||||
config LVGL_OBJ_LED
|
||||
config LVGL_USE_LED
|
||||
bool "LED object"
|
||||
help
|
||||
Enable LED object support
|
||||
|
||||
config LVGL_OBJ_MSG_BOX
|
||||
config LVGL_USE_MSGBOX
|
||||
bool "Message box object"
|
||||
depends on LVGL_OBJ_BUTTON_MATRIX && LVGL_OBJ_LABEL
|
||||
depends on LVGL_USE_BTNMATRIX && LVGL_USE_LABEL
|
||||
help
|
||||
Enable message box object support
|
||||
|
||||
config LVGL_OBJ_TEXT_AREA
|
||||
config LVGL_USE_TEXTAREA
|
||||
bool "Text area object"
|
||||
depends on LVGL_OBJ_LABEL && LVGL_OBJ_PAGE
|
||||
depends on LVGL_USE_LABEL && LVGL_USE_PAGE
|
||||
help
|
||||
Enable text area object support
|
||||
|
||||
if LVGL_OBJ_TEXT_AREA
|
||||
if LVGL_USE_TEXTAREA
|
||||
|
||||
config LVGL_OBJ_TEXT_AREA_CURSOR_BLINK_TIME
|
||||
config LVGL_TA_DEF_CURSOR_BLINK_TIME
|
||||
int "Cursor Blink Time"
|
||||
default 400
|
||||
help
|
||||
Text area cursor blink time in milliseconds
|
||||
|
||||
config LVGL_OBJ_TEXT_AREA_PWD_SHOW_TIME
|
||||
config LVGL_TA_DEF_PWD_SHOW_TIME
|
||||
int "Label scroll speed"
|
||||
default 1500
|
||||
help
|
||||
Password character show time in milliseconds
|
||||
|
||||
endif # LVGL_OBJ_TEXT_AREA
|
||||
endif # LVGL_USE_TEXTAREA
|
||||
|
||||
config LVGL_OBJ_SPINBOX
|
||||
config LVGL_USE_SPINBOX
|
||||
bool "Spinbox object"
|
||||
depends on LVGL_OBJ_TEXT_AREA
|
||||
depends on LVGL_USE_TEXTAREA
|
||||
help
|
||||
Enable spinbox object support
|
||||
|
||||
config LVGL_OBJ_BUTTON
|
||||
config LVGL_USE_BTN
|
||||
bool "Button object"
|
||||
depends on LVGL_OBJ_CONTAINER
|
||||
depends on LVGL_USE_CONT
|
||||
help
|
||||
Enable button object support
|
||||
|
||||
config LVGL_OBJ_IMG_BUTTON
|
||||
config LVGL_USE_IMGBTN
|
||||
bool "Image Button"
|
||||
depends on LVGL_OBJ_BUTTON
|
||||
depends on LVGL_USE_BTN
|
||||
help
|
||||
Enable image button object support
|
||||
|
||||
config LVGL_OBJ_IMG_BUTTON_TILED
|
||||
config LVGL_IMGBTN_TILED
|
||||
bool "Image button tile support"
|
||||
depends on LVGL_OBJ_IMG_BUTTON
|
||||
depends on LVGL_USE_IMGBTN
|
||||
help
|
||||
Enable tile support for image button
|
||||
|
||||
config LVGL_OBJ_BUTTON_MATRIX
|
||||
config LVGL_USE_BTNMATRIX
|
||||
bool "Button Matrix object"
|
||||
help
|
||||
Enable button matrix object support
|
||||
|
||||
config LVGL_OBJ_KEYBOARD
|
||||
config LVGL_USE_KEYBOARD
|
||||
bool "Keyboard object"
|
||||
depends on LVGL_OBJ_BUTTON_MATRIX
|
||||
depends on LVGL_USE_BTNMATRIX
|
||||
help
|
||||
Enable keyboard object support
|
||||
|
||||
config LVGL_OBJ_CHECK_BOX
|
||||
config LVGL_USE_CHECKBOX
|
||||
bool "Check box object"
|
||||
depends on LVGL_OBJ_BUTTON && LVGL_OBJ_LABEL
|
||||
depends on LVGL_USE_BTN && LVGL_USE_LABEL
|
||||
help
|
||||
Enable check box object support
|
||||
|
||||
config LVGL_OBJ_LIST
|
||||
config LVGL_USE_LIST
|
||||
bool "List object"
|
||||
depends on LVGL_OBJ_BUTTON && LVGL_OBJ_LABEL && LVGL_OBJ_PAGE
|
||||
depends on LVGL_USE_BTN && LVGL_USE_LABEL && LVGL_USE_PAGE
|
||||
help
|
||||
Enable list object support
|
||||
|
||||
config LVGL_OBJ_LIST_DEF_ANIM_TIME
|
||||
config LVGL_LIST_DEF_ANIM_TIME
|
||||
int "List focus default animation time"
|
||||
default 100
|
||||
depends on LVGL_OBJ_LIST
|
||||
depends on LVGL_USE_LIST
|
||||
help
|
||||
List focus default animation time in milliseconds
|
||||
|
||||
config LVGL_OBJ_COLOR_PICKER
|
||||
config LVGL_USE_CPICKER
|
||||
bool "Color picker object"
|
||||
help
|
||||
Enable color picker object support
|
||||
|
||||
config LVGL_OBJ_DROP_DOWN_LIST
|
||||
config LVGL_USE_DROPDOWN
|
||||
bool "Drop Down List object"
|
||||
depends on LVGL_OBJ_LABEL && LVGL_OBJ_PAGE
|
||||
depends on LVGL_USE_LABEL && LVGL_USE_PAGE
|
||||
help
|
||||
Enable drop down list object support
|
||||
|
||||
config LVGL_OBJ_DROP_DOWN_LIST_ANIM_TIME
|
||||
config LVGL_DROPDOWN_DEF_ANIM_TIME
|
||||
int "Drop Down list animation time"
|
||||
default 200
|
||||
depends on LVGL_OBJ_DROP_DOWN_LIST
|
||||
depends on LVGL_USE_DROPDOWN
|
||||
help
|
||||
Drop down list animation time in milliseconds
|
||||
|
||||
config LVGL_OBJ_ROLLER
|
||||
config LVGL_USE_ROLLER
|
||||
bool "Roller object"
|
||||
depends on LVGL_OBJ_DROP_DOWN_LIST
|
||||
depends on LVGL_USE_DROPDOWN
|
||||
help
|
||||
Enable roller object support
|
||||
|
||||
if LVGL_OBJ_ROLLER
|
||||
if LVGL_USE_ROLLER
|
||||
|
||||
config LVGL_OBJ_ROLLER_ANIM_TIME
|
||||
config LVGL_ROLLER_DEF_ANIM_TIME
|
||||
int "Roller animation time"
|
||||
default 200
|
||||
help
|
||||
Roller animation time in milliseconds
|
||||
|
||||
config LVGL_OBJ_ROLLER_INF_PAGES
|
||||
config LVGL_ROLLER_INF_PAGES
|
||||
int "Number of pages for infinite roller"
|
||||
default 7
|
||||
help
|
||||
|
@ -372,19 +372,19 @@ config LVGL_OBJ_ROLLER_INF_PAGES
|
|||
|
||||
endif
|
||||
|
||||
config LVGL_OBJ_SLIDER
|
||||
config LVGL_USE_SLIDER
|
||||
bool "Slider object"
|
||||
depends on LVGL_OBJ_BAR
|
||||
depends on LVGL_USE_BAR
|
||||
help
|
||||
Enable slider object support
|
||||
|
||||
config LVGL_OBJ_SWITCH
|
||||
config LVGL_USE_SWITCH
|
||||
bool "Switch object"
|
||||
depends on LVGL_OBJ_SLIDER
|
||||
depends on LVGL_USE_SLIDER
|
||||
help
|
||||
Enable switch object support
|
||||
|
||||
config LVGL_OBJ_OBJMASK
|
||||
config LVGL_USE_OBJMASK
|
||||
bool "Mask object"
|
||||
help
|
||||
Enable object mask support
|
||||
|
|
|
@ -6,30 +6,30 @@ menu "Themes"
|
|||
|
||||
choice
|
||||
prompt "Theme"
|
||||
default LVGL_THEME_EMPTY
|
||||
default LVGL_USE_THEME_EMPTY
|
||||
|
||||
config LVGL_THEME_EMPTY
|
||||
config LVGL_USE_THEME_EMPTY
|
||||
bool "Empty theme"
|
||||
help
|
||||
No theme, you can apply your styles as you need
|
||||
|
||||
config LVGL_THEME_MATERIAL
|
||||
config LVGL_USE_THEME_MATERIAL
|
||||
bool "Material theme"
|
||||
help
|
||||
Material theme, flat theme with bold colors and light shadow, support
|
||||
|
||||
config LVGL_THEME_MONO
|
||||
config LVGL_USE_THEME_MONO
|
||||
bool "Mono theme"
|
||||
help
|
||||
Mono theme, monochrome, support
|
||||
|
||||
config LVGL_THEME_CUSTOM
|
||||
config LVGL_USE_THEME_CUSTOM
|
||||
bool "Custom theme"
|
||||
help
|
||||
Custom theme.
|
||||
endchoice
|
||||
|
||||
if LVGL_THEME_MATERIAL
|
||||
if LVGL_USE_THEME_MATERIAL
|
||||
|
||||
choice
|
||||
prompt "Default material theme flags"
|
||||
|
@ -42,19 +42,19 @@ choice
|
|||
bool "Dark"
|
||||
endchoice
|
||||
|
||||
endif # LVGL_THEME_MATERIAL
|
||||
endif # LVGL_USE_THEME_MATERIAL
|
||||
|
||||
if LVGL_THEME_CUSTOM
|
||||
if LVGL_USE_THEME_CUSTOM
|
||||
|
||||
config LVGL_THEME_CUSTOM_INIT_FUNCTION
|
||||
string "Custom theme initialization function"
|
||||
|
||||
endif # LVGL_THEME_CUSTOM
|
||||
endif # LVGL_USE_THEME_CUSTOM
|
||||
|
||||
choice
|
||||
prompt "Default theme primary color"
|
||||
default LVGL_THEME_DEFAULT_COLOR_PRIMARY_RED
|
||||
default LVGL_THEME_DEFAULT_COLOR_PRIMARY_BLACK if LVGL_THEME_MONO
|
||||
default LVGL_THEME_DEFAULT_COLOR_PRIMARY_BLACK if LVGL_USE_THEME_MONO
|
||||
|
||||
config LVGL_THEME_DEFAULT_COLOR_PRIMARY_WHITE
|
||||
bool "White"
|
||||
|
@ -142,7 +142,7 @@ endif # LVGL_THEME_DEFAULT_COLOR_PRIMARY_CUSTOM
|
|||
choice
|
||||
prompt "Default theme secondary color"
|
||||
default LVGL_THEME_DEFAULT_COLOR_SECONDARY_RED
|
||||
default LVGL_THEME_DEFAULT_COLOR_SECONDARY_BLACK if LVGL_THEME_MONO
|
||||
default LVGL_THEME_DEFAULT_COLOR_SECONDARY_BLACK if LVGL_USE_THEME_MONO
|
||||
|
||||
config LVGL_THEME_DEFAULT_COLOR_SECONDARY_WHITE
|
||||
bool "White"
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
#ifndef ZEPHYR_LIB_GUI_LVGL_LV_CONF_H_
|
||||
#define ZEPHYR_LIB_GUI_LVGL_LV_CONF_H_
|
||||
|
||||
#include <sys/util.h>
|
||||
|
||||
#ifdef CONFIG_LVGL_USE_DEBUG
|
||||
#include <sys/__assert.h>
|
||||
#define LV_DEBUG_ASSERT(expr, msg, value) __ASSERT(expr, msg)
|
||||
|
@ -15,8 +17,8 @@
|
|||
|
||||
/* Graphical settings */
|
||||
|
||||
#define LV_HOR_RES_MAX CONFIG_LVGL_HOR_RES
|
||||
#define LV_VER_RES_MAX CONFIG_LVGL_VER_RES
|
||||
#define LV_HOR_RES_MAX CONFIG_LVGL_HOR_RES_MAX
|
||||
#define LV_VER_RES_MAX CONFIG_LVGL_VER_RES_MAX
|
||||
|
||||
#ifdef CONFIG_LVGL_COLOR_DEPTH_32
|
||||
#define LV_COLOR_DEPTH 32
|
||||
|
@ -28,38 +30,26 @@
|
|||
#define LV_COLOR_DEPTH 1
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_COLOR_16_SWAP
|
||||
#define LV_COLOR_16_SWAP 1
|
||||
#else
|
||||
#define LV_COLOR_16_SWAP 0
|
||||
#endif
|
||||
#define LV_COLOR_16_SWAP IS_ENABLED(CONFIG_LVGL_COLOR_16_SWAP)
|
||||
|
||||
#ifdef CONFIG_LVGL_COLOR_SCREEN_TRANSP
|
||||
#define LV_COLOR_SCREEN_TRANSP 1
|
||||
#else
|
||||
#define LV_COLOR_SCREEN_TRANSP 0
|
||||
#endif
|
||||
#define LV_COLOR_SCREEN_TRANSP IS_ENABLED(CONFIG_LVGL_COLOR_SCREEN_TRANSP)
|
||||
|
||||
#ifdef CONFIG_LVGL_CHROMA_KEY_RED
|
||||
#ifdef CONFIG_LVGL_COLOR_TRANSP_RED
|
||||
#define LV_COLOR_TRANSP LV_COLOR_RED
|
||||
#elif defined(CONFIG_LVGL_CHROMA_KEY_GREEN)
|
||||
#elif defined(CONFIG_LVGL_COLOR_TRANSP_GREEN)
|
||||
#define LV_COLOR_TRANSP LV_COLOR_LIME
|
||||
#elif defined(CONFIG_LVGL_CHROMA_KEY_BLUE)
|
||||
#elif defined(CONFIG_LVGL_COLOR_TRANSP_BLUE)
|
||||
#define LV_COLOR_TRANSP LV_COLOR_BLUE
|
||||
#elif defined(CONFIG_LVGL_CHROMA_KEY_CUSTOM)
|
||||
#elif defined(CONFIG_LVGL_COLOR_TRANSP_CUSTOM)
|
||||
#define LV_COLOR_TRANSP \
|
||||
LV_COLOR_MAKE(CONFIG_LVGL_CUSTOM_CHROMA_KEY_RED, \
|
||||
CONFIG_LVGL_CUSTOM_CHROMA_KEY_GREEN, \
|
||||
CONFIG_LVGL_CUSTOM_CHROMA_KEY_BLUE)
|
||||
LV_COLOR_MAKE(CONFIG_LVGL_CUSTOM_COLOR_TRANSP_RED, \
|
||||
CONFIG_LVGL_CUSTOM_COLOR_TRANSP_GREEN, \
|
||||
CONFIG_LVGL_CUSTOM_COLOR_TRANSP_BLUE)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_ANTIALIAS
|
||||
#define LV_ANTIALIAS 1
|
||||
#else
|
||||
#define LV_ANTIALIAS 0
|
||||
#endif
|
||||
#define LV_ANTIALIAS IS_ENABLED(CONFIG_LVGL_ANTIALIAS)
|
||||
|
||||
#define LV_DISP_DEF_REFR_PERIOD CONFIG_LVGL_SCREEN_REFRESH_PERIOD
|
||||
#define LV_DISP_DEF_REFR_PERIOD CONFIG_LVGL_DISP_DEF_REFR_PERIOD
|
||||
|
||||
#define LV_DPI CONFIG_LVGL_DPI
|
||||
|
||||
|
@ -97,82 +87,49 @@ typedef short lv_coord_t;
|
|||
|
||||
/* Input device settings */
|
||||
|
||||
#define LV_INDEV_DEF_READ_PERIOD CONFIG_LVGL_INPUT_REFRESH_PERIOD
|
||||
#define LV_INDEV_DEF_READ_PERIOD CONFIG_LVGL_INDEV_DEF_READ_PERIOD
|
||||
|
||||
#define LV_INDEV_DEF_DRAG_LIMIT CONFIG_LVGL_INPUT_DRAG_THRESHOLD
|
||||
#define LV_INDEV_DEF_DRAG_LIMIT CONFIG_LVGL_INDEV_DEF_DRAG_LIMIT
|
||||
|
||||
#define LV_INDEV_DEF_DRAG_THROW CONFIG_LVGL_INPUT_DRAG_THROW_SLOW_DOWN
|
||||
#define LV_INDEV_DEF_DRAG_THROW CONFIG_LVGL_INDEV_DEF_DRAG_THROW
|
||||
|
||||
#define LV_INDEV_DEF_LONG_PRESS_TIME CONFIG_LVGL_INPUT_LONG_PRESS_TIME
|
||||
#define LV_INDEV_DEF_LONG_PRESS_TIME CONFIG_LVGL_INDEV_DEF_LONG_PRESS_TIME
|
||||
|
||||
#define LV_INDEV_DEF_LONG_PRESS_REP_TIME \
|
||||
CONFIG_LVGL_INPUT_LONG_RESS_REPEAT_TIME
|
||||
#define LV_INDEV_DEF_LONG_PRESS_REP_TIME CONFIG_LVGL_INDEV_DEF_LONG_PRESS_REP_TIME
|
||||
|
||||
#define LV_INDEV_DEF_GESTURE_LIMIT CONFIG_LVGL_INPUT_GESTURE_LIMIT
|
||||
#define LV_INDEV_DEF_GESTURE_LIMIT CONFIG_LVGL_INDEV_DEF_GESTURE_LIMIT
|
||||
|
||||
#define LV_INDEV_DEF_GESTURE_MIN_VELOCITY CONFIG_LVGL_INPUT_GESTURE_MIN_VELOCITY
|
||||
#define LV_INDEV_DEF_GESTURE_MIN_VELOCITY CONFIG_LVGL_INDEV_DEF_GESTURE_MIN_VELOCITY
|
||||
|
||||
/* Feature usage */
|
||||
|
||||
#ifdef CONFIG_LVGL_ANIMATION
|
||||
#define LV_USE_ANIMATION 1
|
||||
#else
|
||||
#define LV_USE_ANIMATION 0
|
||||
#endif
|
||||
#define LV_USE_ANIMATION IS_ENABLED(CONFIG_LVGL_USE_ANIMATION)
|
||||
|
||||
#if LV_USE_ANIMATION
|
||||
typedef void *lv_anim_user_data_t;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_SHADOW
|
||||
#define LV_USE_SHADOW 1
|
||||
#else
|
||||
#define LV_USE_SHADOW 0
|
||||
#endif
|
||||
#define LV_USE_SHADOW IS_ENABLED(CONFIG_LVGL_USE_SHADOW)
|
||||
|
||||
#if LV_USE_SHADOW
|
||||
#define LV_SHADOW_CACHE_SIZE CONFIG_LVGL_SHADOW_CACHE_SIZE
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_BLEND_MODES
|
||||
#define LV_USE_BLEND_MODES 1
|
||||
#else
|
||||
#define LV_USE_BLEND_MODES 0
|
||||
#endif
|
||||
#define LV_USE_BLEND_MODES IS_ENABLED(CONFIG_LVGL_USE_BLEND_MODES)
|
||||
|
||||
#ifdef CONFIG_LVGL_OPA_SCALE
|
||||
#define LV_USE_OPA_SCALE 1
|
||||
#else
|
||||
#define LV_USE_OPA_SCALE 0
|
||||
#endif
|
||||
#define LV_USE_OPA_SCALE IS_ENABLED(CONFIG_LVGL_USE_OPA_SCALE)
|
||||
|
||||
#ifdef CONFIG_LVGL_IMG_TRANSFORM
|
||||
#define LV_USE_IMG_TRANSFORM 1
|
||||
#else
|
||||
#define LV_USE_IMG_TRANSFORM 0
|
||||
#endif
|
||||
#define LV_USE_IMG_TRANSFORM IS_ENABLED(CONFIG_LVGL_USE_IMG_TRANSFORM)
|
||||
|
||||
#ifdef CONFIG_LVGL_GROUP
|
||||
#define LV_USE_GROUP 1
|
||||
#else
|
||||
#define LV_USE_GROUP 0
|
||||
#endif
|
||||
#define LV_USE_GROUP IS_ENABLED(CONFIG_LVGL_USE_GROUP)
|
||||
|
||||
#if LV_USE_GROUP
|
||||
typedef void *lv_group_user_data_t;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_GPU
|
||||
#define LV_USE_GPU 1
|
||||
#else
|
||||
#define LV_USE_GPU 0
|
||||
#endif
|
||||
#define LV_USE_GPU IS_ENABLED(CONFIG_LVGL_USE_GPU)
|
||||
|
||||
#ifdef CONFIG_LVGL_FILESYSTEM
|
||||
#define LV_USE_FILESYSTEM 1
|
||||
#else
|
||||
#define LV_USE_FILESYSTEM 0
|
||||
#endif
|
||||
#define LV_USE_FILESYSTEM IS_ENABLED(CONFIG_LVGL_USE_FILESYSTEM)
|
||||
|
||||
#if LV_USE_FILESYSTEM
|
||||
typedef void *lv_fs_drv_user_data_t;
|
||||
|
@ -180,31 +137,15 @@ typedef void *lv_fs_drv_user_data_t;
|
|||
|
||||
#define LV_USE_USER_DATA 1
|
||||
|
||||
#ifdef CONFIG_LVGL_PERF_MONITOR
|
||||
#define LV_USE_PERF_MONITOR 1
|
||||
#else
|
||||
#define LV_USE_PERF_MONITOR 0
|
||||
#endif
|
||||
#define LV_USE_PERF_MONITOR IS_ENABLED(CONFIG_LVGL_USE_PERF_MONITOR)
|
||||
|
||||
#ifdef CONFIG_LVGL_API_EXTENSION_V6
|
||||
#define LV_USE_API_EXTENSION_V6 1
|
||||
#else
|
||||
#define LV_USE_API_EXTENSION_V6 0
|
||||
#endif
|
||||
#define LV_USE_API_EXTENSION_V6 IS_ENABLED(CONFIG_LVGL_USE_API_EXTENSION_V6)
|
||||
|
||||
/* Image decoder and cache */
|
||||
|
||||
#ifdef CONFIG_LVGL_IMG_CF_INDEXED
|
||||
#define LV_IMG_CF_INDEXED 1
|
||||
#else
|
||||
#define LV_IMG_CF_INDEXED 0
|
||||
#endif
|
||||
#define LV_IMG_CF_INDEXED IS_ENABLED(CONFIG_LVGL_IMG_CF_INDEXED)
|
||||
|
||||
#ifdef CONFIG_LVGL_IMG_CF_ALPHA
|
||||
#define LV_IMG_CF_ALPHA 1
|
||||
#else
|
||||
#define LV_IMG_CF_ALPHA 0
|
||||
#endif
|
||||
#define LV_IMG_CF_ALPHA IS_ENABLED(CONFIG_LVGL_IMG_CF_ALPHA)
|
||||
|
||||
#define LV_IMG_CACHE_DEF_SIZE CONFIG_LVGL_IMG_CACHE_DEF_SIZE
|
||||
|
||||
|
@ -253,60 +194,28 @@ typedef void *lv_indev_drv_user_data_t;
|
|||
|
||||
/* Debug settings */
|
||||
|
||||
#ifdef CONFIG_LVGL_USE_DEBUG
|
||||
#define LV_USE_DEBUG 1
|
||||
#else
|
||||
#define LV_USE_DEBUG 0
|
||||
#endif
|
||||
#define LV_USE_DEBUG IS_ENABLED(CONFIG_LVGL_USE_DEBUG)
|
||||
|
||||
#if LV_USE_DEBUG
|
||||
|
||||
#ifdef CONFIG_LVGL_USE_ASSERT_NULL
|
||||
#define LV_USE_ASSERT_NULL 1
|
||||
#else
|
||||
#define LV_USE_ASSERT_NULL 0
|
||||
#endif
|
||||
#define LV_USE_ASSERT_NULL IS_ENABLED(CONFIG_LVGL_USE_ASSERT_NULL)
|
||||
|
||||
#ifdef CONFIG_LVGL_USE_ASSERT_MEM
|
||||
#define LV_USE_ASSERT_MEM 1
|
||||
#else
|
||||
#define LV_USE_ASSERT_MEM 0
|
||||
#endif
|
||||
#define LV_USE_ASSERT_MEM IS_ENABLED(CONFIG_LVGL_USE_ASSERT_MEM)
|
||||
|
||||
#ifdef CONFIG_LVGL_USE_ASSERT_MEM_INTEGRITY
|
||||
#define LV_USE_ASSERT_MEM_INTEGRITY 1
|
||||
#else
|
||||
#define LV_USE_ASSERT_MEM_INTEGRITY 0
|
||||
#endif
|
||||
#define LV_USE_ASSERT_MEM_INTEGRITY IS_ENABLED(CONFIG_LVGL_USE_ASSERT_MEM_INTEGRITY)
|
||||
|
||||
#ifdef CONFIG_LVGL_USE_ASSERT_STR
|
||||
#define LV_USE_ASSERT_STR 1
|
||||
#else
|
||||
#define LV_USE_ASSERT_STR 0
|
||||
#endif
|
||||
#define LV_USE_ASSERT_STR IS_ENABLED(CONFIG_LVGL_USE_ASSERT_STR)
|
||||
|
||||
#ifdef CONFIG_LVGL_USE_ASSERT_OBJ
|
||||
#define LV_USE_ASSERT_OBJ 1
|
||||
#else
|
||||
#define LV_USE_ASSERT_OBJ 0
|
||||
#endif
|
||||
#define LV_USE_ASSERT_OBJ IS_ENABLED(CONFIG_LVGL_USE_ASSERT_OBJ)
|
||||
|
||||
#ifdef CONFIG_LVGL_USE_ASSERT_STYLE
|
||||
#define LV_USE_ASSERT_STYLE 1
|
||||
#else
|
||||
#define LV_USE_ASSERT_STYLE 0
|
||||
#endif
|
||||
#define LV_USE_ASSERT_STYLE IS_ENABLED(CONFIG_LVGL_USE_ASSERT_STYLE)
|
||||
|
||||
#endif /* LV_USE_DEBUG */
|
||||
|
||||
/* THEME USAGE */
|
||||
|
||||
/* Empty theme */
|
||||
#ifdef CONFIG_LVGL_THEME_EMPTY
|
||||
#define LV_USE_THEME_EMPTY 1
|
||||
#else
|
||||
#define LV_USE_THEME_EMPTY 0
|
||||
#endif
|
||||
#define LV_USE_THEME_EMPTY IS_ENABLED(CONFIG_LVGL_USE_THEME_EMPTY)
|
||||
|
||||
#if LV_USE_THEME_EMPTY
|
||||
#define LV_THEME_DEFAULT_FLAG 0
|
||||
|
@ -314,11 +223,7 @@ typedef void *lv_indev_drv_user_data_t;
|
|||
#endif
|
||||
|
||||
/* Material theme */
|
||||
#ifdef CONFIG_LVGL_THEME_MATERIAL
|
||||
#define LV_USE_THEME_MATERIAL 1
|
||||
#else
|
||||
#define LV_USE_THEME_MATERIAL 0
|
||||
#endif
|
||||
#define LV_USE_THEME_MATERIAL IS_ENABLED(CONFIG_LVGL_USE_THEME_MATERIAL)
|
||||
|
||||
#if LV_USE_THEME_MATERIAL
|
||||
#define LV_THEME_DEFAULT_INIT lv_theme_material_init
|
||||
|
@ -332,11 +237,7 @@ typedef void *lv_indev_drv_user_data_t;
|
|||
#endif
|
||||
|
||||
/* Mono-color theme */
|
||||
#ifdef CONFIG_LVGL_THEME_MONO
|
||||
#define LV_USE_THEME_MONO 1
|
||||
#else
|
||||
#define LV_USE_THEME_MONO 0
|
||||
#endif
|
||||
#define LV_USE_THEME_MONO IS_ENABLED(CONFIG_LVGL_USE_THEME_MONO)
|
||||
|
||||
#if LV_USE_THEME_MONO
|
||||
#define LV_THEME_DEFAULT_INIT lv_theme_mono_init
|
||||
|
@ -344,7 +245,7 @@ typedef void *lv_indev_drv_user_data_t;
|
|||
#endif
|
||||
|
||||
/* Custom theme */
|
||||
#if CONFIG_LVGL_THEME_CUSTOM
|
||||
#if CONFIG_LVGL_USE_THEME_CUSTOM
|
||||
|
||||
lv_theme_t *LVGL_THEME_CUSTOM_INIT_FUNCTION(
|
||||
lv_color_t color_primary, lv_color_t color_secondary, uint32_t flags,
|
||||
|
@ -665,155 +566,55 @@ extern void *lv_theme_default_font_title_custom_ptr;
|
|||
|
||||
/* FONT USAGE */
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_12
|
||||
#define LV_FONT_MONTSERRAT_12 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_12 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_12 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_12)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_14
|
||||
#define LV_FONT_MONTSERRAT_14 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_14 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_14 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_14)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_16
|
||||
#define LV_FONT_MONTSERRAT_16 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_16 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_16 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_16)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_18
|
||||
#define LV_FONT_MONTSERRAT_18 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_18 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_18 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_18)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_20
|
||||
#define LV_FONT_MONTSERRAT_20 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_20 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_20 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_20)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_22
|
||||
#define LV_FONT_MONTSERRAT_22 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_22 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_22 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_22)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_24
|
||||
#define LV_FONT_MONTSERRAT_24 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_24 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_24 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_24)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_26
|
||||
#define LV_FONT_MONTSERRAT_26 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_26 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_26 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_26)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_28
|
||||
#define LV_FONT_MONTSERRAT_28 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_28 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_28 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_28)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_30
|
||||
#define LV_FONT_MONTSERRAT_30 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_30 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_30 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_30)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_32
|
||||
#define LV_FONT_MONTSERRAT_32 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_32 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_32 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_32)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_34
|
||||
#define LV_FONT_MONTSERRAT_34 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_34 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_34 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_34)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_36
|
||||
#define LV_FONT_MONTSERRAT_36 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_36 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_36 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_36)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_38
|
||||
#define LV_FONT_MONTSERRAT_38 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_38 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_38 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_38)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_40
|
||||
#define LV_FONT_MONTSERRAT_40 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_40 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_40 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_40)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_42
|
||||
#define LV_FONT_MONTSERRAT_42 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_42 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_42 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_42)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_44
|
||||
#define LV_FONT_MONTSERRAT_44 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_44 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_44 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_44)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_46
|
||||
#define LV_FONT_MONTSERRAT_46 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_46 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_46 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_46)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_48
|
||||
#define LV_FONT_MONTSERRAT_48 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_48 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_48 IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_48)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_12_SUBPX
|
||||
#define LV_FONT_MONTSERRAT_12_SUBPX 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_12_SUBPX 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_12_SUBPX IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_12_SUBPX)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_MONTSERRAT_28_COMPRESSED
|
||||
#define LV_FONT_MONTSERRAT_28_COMPRESSED 1
|
||||
#else
|
||||
#define LV_FONT_MONTSERRAT_28_COMPRESSED 0
|
||||
#endif
|
||||
#define LV_FONT_MONTSERRAT_28_COMPRESSED IS_ENABLED(CONFIG_LVGL_FONT_MONTSERRAT_28_COMPRESSED)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_DEJAVU_16_PERSIAN_HEBREW
|
||||
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 1
|
||||
#else
|
||||
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0
|
||||
#endif
|
||||
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW IS_ENABLED(CONFIG_LVGL_FONT_DEJAVU_16_PERSIAN_HEBREW)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_SIMSUN_16_CJK
|
||||
#define LV_FONT_SIMSUN_16_CJK 1
|
||||
#else
|
||||
#define LV_FONT_SIMSUN_16_CJK 0
|
||||
#endif
|
||||
#define LV_FONT_SIMSUN_16_CJK IS_ENABLED(CONFIG_LVGL_FONT_SIMSUN_16_CJK)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_UNSCII_8
|
||||
#define LV_FONT_UNSCII_8 1
|
||||
#else
|
||||
#define LV_FONT_UNSCII_8 0
|
||||
#endif
|
||||
#define LV_FONT_UNSCII_8 IS_ENABLED(CONFIG_LVGL_FONT_UNSCII_8)
|
||||
|
||||
#ifdef CONFIG_LVGL_FONT_SUBPX_BGR
|
||||
#define LV_FONT_SUBPX_BGR 1
|
||||
#else
|
||||
#define LV_FONT_SUBPX_BGR 0
|
||||
#endif
|
||||
#define LV_FONT_SUBPX_BGR IS_ENABLED(CONFIG_LVGL_FONT_SUBPX_BGR)
|
||||
|
||||
#define LV_FONT_CUSTOM_DECLARE
|
||||
|
||||
|
@ -827,29 +628,25 @@ typedef void *lv_font_user_data_t;
|
|||
#define LV_TXT_ENC LV_TXT_ENC_UTF8
|
||||
#endif
|
||||
|
||||
#define LV_TXT_BREAK_CHARS CONFIG_LVGL_TEXT_BREAK_CHARACTERS
|
||||
#define LV_TXT_BREAK_CHARS CONFIG_LVGL_TXT_BREAK_CHARS
|
||||
|
||||
#define LV_TXT_LINE_BREAK_LONG_LEN CONFIG_LVGL_TEXT_LINE_BREAK_LONG_LEN
|
||||
#define LV_TXT_LINE_BREAK_LONG_LEN CONFIG_LVGL_TXT_LINE_BREAK_LONG_LEN
|
||||
|
||||
#define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN \
|
||||
CONFIG_LVGL_TEXT_LINE_BREAK_LONG_PRE_MIN_LEN
|
||||
CONFIG_LVGL_TXT_LINE_BREAK_LONG_PRE_MIN_LEN
|
||||
|
||||
#define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN \
|
||||
CONFIG_LVGL_TEXT_LINE_BREAK_LONG_POST_MIN_LEN
|
||||
CONFIG_LVGL_TXT_LINE_BREAK_LONG_POST_MIN_LEN
|
||||
|
||||
#define LV_TXT_COLOR_CMD CONFIG_LVGL_TEXT_COLOR_CMD
|
||||
#define LV_TXT_COLOR_CMD CONFIG_LVGL_TXT_COLOR_CMD
|
||||
|
||||
#ifdef CONFIG_LVGL_TEXT_USE_BIDI
|
||||
#define LV_USE_BIDI 1
|
||||
#else
|
||||
#define LV_USE_BIDI 0
|
||||
#endif
|
||||
#define LV_USE_BIDI IS_ENABLED(CONFIG_LVGL_USE_BIDI)
|
||||
|
||||
#if LV_USE_BIDI
|
||||
|
||||
#ifdef CONFIG_LVGL_TEXT_BIDI_DIR_LTR
|
||||
#ifdef CONFIG_LVGL_BIDI_DIR_LTR
|
||||
#define LV_BIDI_BASE_DIR_DEF LV_BIDI_DIR_LTR
|
||||
#elif defined(CONFIG_LVGL_TEXT_BIDI_DIR_RTL)
|
||||
#elif defined(CONFIG_LVGL_BIDI_DIR_RTL)
|
||||
#define LV_BIDI_BASE_DIR_DEF LV_BIDI_DIR_RTL
|
||||
#else
|
||||
#define LV_BIDI_BASE_DIR_DEF LV_BIDI_DIR_AUTO
|
||||
|
@ -857,11 +654,7 @@ typedef void *lv_font_user_data_t;
|
|||
|
||||
#endif
|
||||
|
||||
#if CONFIG_LVGL_TEXT_ARABIC_PERSIAN_CHARS
|
||||
#define LV_USE_ARABIC_PERSIAN_CHARS 1
|
||||
#else
|
||||
#define LV_USE_ARABIC_PERSIAN_CHARS 0
|
||||
#endif
|
||||
#define LV_USE_ARABIC_PERSIAN_CHARS IS_ENABLED(CONFIG_LVGL_USE_ARABIC_PERSIAN_CHARS)
|
||||
|
||||
#define LV_SPRINTF_CUSTOM 1
|
||||
|
||||
|
@ -875,11 +668,7 @@ typedef void *lv_font_user_data_t;
|
|||
|
||||
typedef void *lv_obj_user_data_t;
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_REALIGN
|
||||
#define LV_USE_OBJ_REALIGN 1
|
||||
#else
|
||||
#define LV_USE_OBJ_REALIGN 0
|
||||
#endif
|
||||
#define LV_USE_OBJ_REALIGN IS_ENABLED(CONFIG_LVGL_USE_OBJ_REALIGN)
|
||||
|
||||
#if defined(CONFIG_LVGL_EXT_CLICK_AREA_OFF)
|
||||
#define LV_USE_EXT_CLICK_AREA LV_EXT_CLICK_AREA_OFF
|
||||
|
@ -891,301 +680,135 @@ typedef void *lv_obj_user_data_t;
|
|||
|
||||
/* LV OBJ X USAGE */
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_ARC
|
||||
#define LV_USE_ARC 1
|
||||
#else
|
||||
#define LV_USE_ARC 0
|
||||
#endif
|
||||
#define LV_USE_ARC IS_ENABLED(CONFIG_LVGL_USE_ARC)
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_BAR
|
||||
#define LV_USE_BAR 1
|
||||
#else
|
||||
#define LV_USE_BAR 0
|
||||
#endif
|
||||
#define LV_USE_BAR IS_ENABLED(CONFIG_LVGL_USE_BAR)
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_BUTTON
|
||||
#define LV_USE_BTN 1
|
||||
#else
|
||||
#define LV_USE_BTN 0
|
||||
#endif
|
||||
#define LV_USE_BTN IS_ENABLED(CONFIG_LVGL_USE_BTN)
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_BUTTON_MATRIX
|
||||
#define LV_USE_BTNMATRIX 1
|
||||
#else
|
||||
#define LV_USE_BTNMATRIX 0
|
||||
#endif
|
||||
#define LV_USE_BTNMATRIX IS_ENABLED(CONFIG_LVGL_USE_BTNMATRIX)
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_CALENDAR
|
||||
#define LV_USE_CALENDAR 1
|
||||
#else
|
||||
#define LV_USE_CALENDAR 0
|
||||
#endif
|
||||
#define LV_USE_CALENDAR IS_ENABLED(CONFIG_LVGL_USE_CALENDAR)
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_CANVAS
|
||||
#define LV_USE_CANVAS 1
|
||||
#else
|
||||
#define LV_USE_CANVAS 0
|
||||
#endif
|
||||
#define LV_USE_CANVAS IS_ENABLED(CONFIG_LVGL_USE_CANVAS)
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_CHECK_BOX
|
||||
#define LV_USE_CHECKBOX 1
|
||||
#else
|
||||
#define LV_USE_CHECKBOX 0
|
||||
#endif
|
||||
#define LV_USE_CHECKBOX IS_ENABLED(CONFIG_LVGL_USE_CHECKBOX)
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_CHART
|
||||
#define LV_USE_CHART 1
|
||||
#else
|
||||
#define LV_USE_CHART 0
|
||||
#endif
|
||||
#define LV_USE_CHART IS_ENABLED(CONFIG_LVGL_USE_CHART)
|
||||
#if LV_USE_CHART
|
||||
#define LV_CHART_AXIS_TICK_LABEL_MAX_LEN \
|
||||
CONFIG_LVGL_OBJ_CHART_AXIS_TICK_LABEL_MAX_LEN
|
||||
CONFIG_LVGL_CHART_AXIS_TICK_LABEL_MAX_LEN
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_CONTAINER
|
||||
#define LV_USE_CONT 1
|
||||
#else
|
||||
#define LV_USE_CONT 0
|
||||
#define LV_USE_CONT IS_ENABLED(CONFIG_LVGL_USE_CONT)
|
||||
|
||||
#define LV_USE_CPICKER IS_ENABLED(CONFIG_LVGL_USE_CPICKER)
|
||||
|
||||
#define LV_USE_DROPDOWN IS_ENABLED(CONFIG_LVGL_USE_DROPDOWN)
|
||||
#if LV_USE_DROPDOWN
|
||||
#define LV_DROPDOWN_DEF_ANIM_TIME CONFIG_LVGL_DROPDOWN_DEF_ANIM_TIME
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_COLOR_PICKER
|
||||
#define LV_USE_CPICKER 1
|
||||
#else
|
||||
#define LV_USE_CPICKER 0
|
||||
#endif
|
||||
#define LV_USE_GAUGE IS_ENABLED(CONFIG_LVGL_USE_GAUGE)
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_DROP_DOWN_LIST
|
||||
#define LV_USE_DROPDOWN 1
|
||||
#else
|
||||
#define LV_USE_DROPDOWN 0
|
||||
#endif
|
||||
|
||||
#if LV_USE_DROPDOWN != 0
|
||||
#define LV_DDLIST_DEF_ANIM_TIME CONFIG_LVGL_OBJ_DROP_DOWN_LIST_ANIM_TIME
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_GAUGE
|
||||
#define LV_USE_GAUGE 1
|
||||
#else
|
||||
#define LV_USE_GAUGE 0
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_IMAGE
|
||||
#define LV_USE_IMG 1
|
||||
#else
|
||||
#define LV_USE_IMG 0
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_IMG_BUTTON
|
||||
#define LV_USE_IMGBTN 1
|
||||
#else
|
||||
#define LV_USE_IMGBTN 0
|
||||
#endif
|
||||
#define LV_USE_IMG IS_ENABLED(CONFIG_LVGL_USE_IMG)
|
||||
|
||||
#define LV_USE_IMGBTN IS_ENABLED(CONFIG_LVGL_USE_IMGBTN)
|
||||
#if LV_USE_IMGBTN
|
||||
#ifdef CONFIG_LVGL_OBJ_IMG_BUTTON_TILED
|
||||
#define LV_IMGBTN_TILED 1
|
||||
#else
|
||||
#define LV_IMGBTN_TILED 0
|
||||
#endif
|
||||
#define LV_IMGBTN_TILED IS_ENABLED(CONFIG_LVGL_IMGBTN_TILED)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_KEYBOARD
|
||||
#define LV_USE_KEYBOARD 1
|
||||
#else
|
||||
#define LV_USE_KEYBOARD 0
|
||||
#endif
|
||||
#define LV_USE_KEYBOARD IS_ENABLED(CONFIG_LVGL_USE_KEYBOARD)
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_LABEL
|
||||
#define LV_USE_LABEL 1
|
||||
#else
|
||||
#define LV_USE_LABEL 0
|
||||
#endif
|
||||
|
||||
#if LV_USE_LABEL != 0
|
||||
#define LV_LABEL_DEF_SCROLL_SPEED CONFIG_LVGL_OBJ_LABEL_SCROLL_SPEED
|
||||
#define LV_USE_LABEL IS_ENABLED(CONFIG_LVGL_USE_LABEL)
|
||||
#if LV_USE_LABEL
|
||||
#define LV_LABEL_DEF_SCROLL_SPEED CONFIG_LVGL_LABEL_DEF_SCROLL_SPEED
|
||||
#define LV_LABEL_WAIT_CHAR_COUNT \
|
||||
CONFIG_LVGL_OBJ_LABEL_WAIT_CHAR_COUNT
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_LABEL_TEXT_SEL
|
||||
#define LV_LABEL_TEXT_SEL 1
|
||||
#else
|
||||
#define LV_LABEL_TEXT_SEL 0
|
||||
CONFIG_LVGL_LABEL_WAIT_CHAR_COUNT
|
||||
#define LV_LABEL_TEXT_SEL IS_ENABLED(CONFIG_LVGL_LABEL_TEXT_SEL)
|
||||
#define LV_LABEL_LONG_TXT_HINT IS_ENABLED(CONFIG_LVGL_LABEL_LONG_TXT_HINT)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_LABEL_LONG_TXT_HINT
|
||||
#define LV_LABEL_LONG_TXT_HINT 1
|
||||
#else
|
||||
#define LV_LABEL_LONG_TXT_HINT 0
|
||||
#define LV_USE_LED IS_ENABLED(CONFIG_LVGL_USE_LED)
|
||||
#if LV_USE_LED
|
||||
#define LV_LED_BRIGHT_MIN CONFIG_LVGL_LED_BRIGHT_MIN
|
||||
#define LV_LED_BRIGHT_MAX CONFIG_LVGL_LED_BRIGHT_MAX
|
||||
#endif
|
||||
|
||||
#define LV_USE_LINE IS_ENABLED(CONFIG_LVGL_USE_LINE)
|
||||
|
||||
#define LV_USE_LIST IS_ENABLED(CONFIG_LVGL_USE_LIST)
|
||||
#if LV_USE_LIST
|
||||
#define LV_LIST_DEF_ANIM_TIME CONFIG_LVGL_LIST_DEF_ANIM_TIME
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_LED
|
||||
#define LV_USE_LED 1
|
||||
#else
|
||||
#define LV_USE_LED 0
|
||||
#endif
|
||||
|
||||
#if LV_USE_LED != 0
|
||||
#define LV_LED_BRIGHT_MIN CONFIG_LVGL_OBJ_LED_BRIGHT_MIN
|
||||
#define LV_LED_BRIGHT_MAX CONFIG_LVGL_OBJ_LED_BRIGHT_MAX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_LINE
|
||||
#define LV_USE_LINE 1
|
||||
#else
|
||||
#define LV_USE_LINE 0
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_LIST
|
||||
#define LV_USE_LIST 1
|
||||
#else
|
||||
#define LV_USE_LIST 0
|
||||
#endif
|
||||
|
||||
#if LV_USE_LIST != 0
|
||||
#define LV_LIST_DEF_ANIM_TIME CONFIG_LVGL_OBJ_LIST_DEF_ANIM_TIME
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_LINE_METER
|
||||
#define LV_USE_LINEMETER 1
|
||||
#else
|
||||
#define LV_USE_LINEMETER 0
|
||||
#endif
|
||||
|
||||
#if LV_USE_LINEMETER != 0
|
||||
|
||||
#if defined(CONFIG_LVGL_OBJ_LINE_METER_PRECISE_NO_EXTRA)
|
||||
#define LV_USE_LINEMETER IS_ENABLED(CONFIG_LVGL_USE_LINEMETER)
|
||||
#if LV_USE_LINEMETER
|
||||
#if defined(CONFIG_LVGL_LINEMETER_PRECISE_NO_EXTRA)
|
||||
#define LV_LINEMETER_PRECISE 0
|
||||
#elif defined(CONFIG_LVGL_OBJ_LINE_METER_PRECISE_SOME_EXTRA)
|
||||
#elif defined(CONFIG_LVGL_LINEMETER_PRECISE_SOME_EXTRA)
|
||||
#define LV_LINEMETER_PRECISE 1
|
||||
#elif defined(CONFIG_LVGL_OBJ_LINE_METER_PRECISE_BEST)
|
||||
#elif defined(CONFIG_LVGL_LINEMETER_PRECISE_BEST)
|
||||
#define LV_LINEMETER_PRECISE 2
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_OBJMASK
|
||||
#define LV_USE_OBJMASK 1
|
||||
#else
|
||||
#define LV_USE_OBJMASK 0
|
||||
#define LV_USE_OBJMASK IS_ENABLED(CONFIG_LVGL_USE_OBJMASK)
|
||||
|
||||
#define LV_USE_MSGBOX IS_ENABLED(CONFIG_LVGL_USE_MSGBOX)
|
||||
|
||||
#define LV_USE_PAGE IS_ENABLED(CONFIG_LVGL_USE_PAGE)
|
||||
#if LV_USE_PAGE
|
||||
#define LV_PAGE_DEF_ANIM_TIME CONFIG_LVGL_PAGE_DEF_ANIM_TIME
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_MSG_BOX
|
||||
#define LV_USE_MSGBOX 1
|
||||
#else
|
||||
#define LV_USE_MSGBOX 0
|
||||
#endif
|
||||
#define LV_USE_SPINNER IS_ENABLED(CONFIG_LVGL_USE_SPINNER)
|
||||
#if LV_USE_SPINNER
|
||||
#define LV_SPINNER_DEF_ARC_LENGTH CONFIG_LVGL_SPINNER_DEF_ARC_LENGTH
|
||||
#define LV_SPINNER_DEF_SPIN_TIME CONFIG_LVGL_SPINNER_DEF_SPIN_TIME
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_PAGE
|
||||
#define LV_USE_PAGE 1
|
||||
#else
|
||||
#define LV_USE_PAGE 0
|
||||
#endif
|
||||
|
||||
#if LV_USE_PAGE != 0
|
||||
#define LV_PAGE_DEF_ANIM_TIME CONFIG_LVGL_OBJ_PAGE_DEF_ANIM_TIME
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_SPINNER
|
||||
#define LV_USE_SPINNER 1
|
||||
#else
|
||||
#define LV_USE_SPINNER 0
|
||||
#endif
|
||||
|
||||
#if LV_USE_SPINNER != 0
|
||||
|
||||
#define LV_SPINNER_DEF_ARC_LENGTH CONFIG_LVGL_OBJ_SPINNER_DEF_ARC_LENGTH
|
||||
#define LV_SPINNER_DEF_SPIN_TIME CONFIG_LVGL_OBJ_SPINNER_DEF_SPIN_TIME
|
||||
|
||||
#if defined(CONFIG_LVGL_OBJ_SPINNER_DEF_ANIM_SPINNING_ARC)
|
||||
#if defined(CONFIG_LVGL_SPINNER_DEF_ANIM_SPINNING_ARC)
|
||||
#define LV_SPINNER_DEF_ANIM LV_SPINNER_TYPE_SPINNING_ARC
|
||||
#elif defined(CONFIG_LVGL_OBJ_SPINNER_DEF_ANIM_FILLSPIN_ARC)
|
||||
#elif defined(CONFIG_LVGL_SPINNER_DEF_ANIM_FILLSPIN_ARC)
|
||||
#define LV_SPINNER_DEF_ANIM LV_SPINNER_TYPE_FILLSPIN_ARC
|
||||
#elif defined(CONFIG_LVGL_OBJ_SPINNER_DEF_ANIM_CONSTANT_ARC)
|
||||
#elif defined(CONFIG_LVGL_SPINNER_DEF_ANIM_CONSTANT_ARC)
|
||||
#define LV_SPINNER_DEF_ANIM LV_SPINNER_TYPE_CONSTANT_ARC
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_ROLLER
|
||||
#define LV_USE_ROLLER 1
|
||||
#else
|
||||
#define LV_USE_ROLLER 0
|
||||
#define LV_USE_ROLLER IS_ENABLED(CONFIG_LVGL_USE_ROLLER)
|
||||
#if LV_USE_ROLLER
|
||||
#define LV_ROLLER_DEF_ANIM_TIME CONFIG_LVGL_ROLLER_DEF_ANIM_TIME
|
||||
#define LV_ROLLER_INF_PAGES CONFIG_LVGL_ROLLER_INF_PAGES
|
||||
#endif
|
||||
|
||||
#if LV_USE_ROLLER != 0
|
||||
#define LV_ROLLER_DEF_ANIM_TIME CONFIG_LVGL_OBJ_ROLLER_ANIM_TIME
|
||||
#define LV_ROLLER_INF_PAGES CONFIG_LVGL_OBJ_ROLLER_INF_PAGES
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_SLIDER
|
||||
#define LV_USE_SLIDER 1
|
||||
#else
|
||||
#define LV_USE_SLIDER 0
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_SPINBOX
|
||||
#define LV_USE_SPINBOX 1
|
||||
#else
|
||||
#define LV_USE_SPINBOX 0
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_SWITCH
|
||||
#define LV_USE_SWITCH 1
|
||||
#else
|
||||
#define LV_USE_SWITCH 0
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_TEXT_AREA
|
||||
#define LV_USE_TEXTAREA 1
|
||||
#else
|
||||
#define LV_USE_TEXTAREA 0
|
||||
#endif
|
||||
|
||||
#if LV_USE_TEXTAREA != 0
|
||||
#define LV_TA_DEF_CURSOR_BLINK_TIME \
|
||||
CONFIG_LVGL_OBJ_TEXT_AREA_CURSOR_BLINK_TIME
|
||||
#define LV_TA_DEF_PWD_SHOW_TIME \
|
||||
CONFIG_LVGL_OBJ_TEXT_AREA_PWD_SHOW_TIME
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_TABLE
|
||||
#define LV_USE_TABLE 1
|
||||
#else
|
||||
#define LV_USE_TABLE 0
|
||||
#define LV_USE_SLIDER IS_ENABLED(CONFIG_LVGL_USE_SLIDER)
|
||||
|
||||
#define LV_USE_SPINBOX IS_ENABLED(CONFIG_LVGL_USE_SPINBOX)
|
||||
|
||||
#define LV_USE_SWITCH IS_ENABLED(CONFIG_LVGL_USE_SWITCH)
|
||||
|
||||
#define LV_USE_TEXTAREA IS_ENABLED(CONFIG_LVGL_USE_TEXTAREA)
|
||||
#if LV_USE_TEXTAREA
|
||||
#define LV_TA_DEF_CURSOR_BLINK_TIME CONFIG_LVGL_TA_DEF_CURSOR_BLINK_TIME
|
||||
#define LV_TA_DEF_PWD_SHOW_TIME CONFIG_LVGL_TA_DEF_PWD_SHOW_TIME
|
||||
#endif
|
||||
|
||||
#define LV_USE_TABLE IS_ENABLED(CONFIG_LVGL_USE_TABLE)
|
||||
#if LV_USE_TABLE
|
||||
#define LV_TABLE_COL_MAX CONFIG_LVGL_OBJ_TABLE_COLUMN_MAX
|
||||
#define LV_TABLE_COL_MAX CONFIG_LVGL_TABLE_COL_MAX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_TAB_VIEW
|
||||
#define LV_USE_TABVIEW 1
|
||||
#else
|
||||
#define LV_USE_TABVIEW 0
|
||||
#endif
|
||||
|
||||
#if LV_USE_TABVIEW != 0
|
||||
#define LV_TABVIEW_DEF_ANIM_TIME CONFIG_LVGL_OBJ_TAB_VIEW_ANIMATION_TIME
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_TILE_VIEW
|
||||
#define LV_USE_TILEVIEW 1
|
||||
#else
|
||||
#define LV_USE_TILEVIEW 0
|
||||
#define LV_USE_TABVIEW IS_ENABLED(CONFIG_LVGL_USE_TABVIEW)
|
||||
#if LV_USE_TABVIEW
|
||||
#define LV_TABVIEW_DEF_ANIM_TIME CONFIG_LVGL_TABVIEW_DEF_ANIM_TIME
|
||||
#endif
|
||||
|
||||
#define LV_USE_TILEVIEW IS_ENABLED(CONFIG_LVGL_USE_TILEVIEW)
|
||||
#if LV_USE_TILEVIEW
|
||||
#define LV_TILEVIEW_DEF_ANIM_TIME CONFIG_LVGL_OBJ_TILE_VIEW_ANIMATION_TIME
|
||||
#define LV_TILEVIEW_DEF_ANIM_TIME CONFIG_LVGL_TILEVIEW_DEF_ANIM_TIME
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LVGL_OBJ_WINDOW
|
||||
#define LV_USE_WIN 1
|
||||
#else
|
||||
#define LV_USE_WIN 0
|
||||
#endif
|
||||
#define LV_USE_WIN IS_ENABLED(CONFIG_LVGL_USE_WIN)
|
||||
|
||||
#endif /* ZEPHYR_LIB_GUI_LVGL_LV_CONF_H_ */
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <zephyr.h>
|
||||
#include <lvgl.h>
|
||||
#include "lvgl_display.h"
|
||||
#ifdef CONFIG_LVGL_FILESYSTEM
|
||||
#ifdef CONFIG_LVGL_USE_FILESYSTEM
|
||||
#include "lvgl_fs.h"
|
||||
#endif
|
||||
#ifdef CONFIG_LVGL_POINTER_KSCAN
|
||||
|
@ -25,7 +25,7 @@ LOG_MODULE_REGISTER(lvgl);
|
|||
static lv_disp_buf_t disp_buf;
|
||||
|
||||
#define BUFFER_SIZE (CONFIG_LVGL_BITS_PER_PIXEL * ((CONFIG_LVGL_VDB_SIZE * \
|
||||
CONFIG_LVGL_HOR_RES * CONFIG_LVGL_VER_RES) / 100) / 8)
|
||||
CONFIG_LVGL_HOR_RES_MAX * CONFIG_LVGL_VER_RES_MAX) / 100) / 8)
|
||||
|
||||
#define NBR_PIXELS_IN_BUFFER (BUFFER_SIZE * 8 / CONFIG_LVGL_BITS_PER_PIXEL)
|
||||
|
||||
|
@ -80,14 +80,14 @@ static int lvgl_allocate_rendering_buffers(lv_disp_drv_t *disp_drv)
|
|||
|
||||
display_get_capabilities(display_dev, &cap);
|
||||
|
||||
if (cap.x_resolution <= CONFIG_LVGL_HOR_RES) {
|
||||
if (cap.x_resolution <= CONFIG_LVGL_HOR_RES_MAX) {
|
||||
disp_drv->hor_res = cap.x_resolution;
|
||||
} else {
|
||||
LOG_ERR("Horizontal resolution is larger than maximum");
|
||||
err = -ENOTSUP;
|
||||
}
|
||||
|
||||
if (cap.y_resolution <= CONFIG_LVGL_VER_RES) {
|
||||
if (cap.y_resolution <= CONFIG_LVGL_VER_RES_MAX) {
|
||||
disp_drv->ver_res = cap.y_resolution;
|
||||
} else {
|
||||
LOG_ERR("Vertical resolution is larger than maximum");
|
||||
|
@ -263,7 +263,7 @@ static int lvgl_init(struct device *dev)
|
|||
|
||||
lv_init();
|
||||
|
||||
#ifdef CONFIG_LVGL_FILESYSTEM
|
||||
#ifdef CONFIG_LVGL_USE_FILESYSTEM
|
||||
lvgl_fs_init();
|
||||
#endif
|
||||
|
||||
|
|
|
@ -2,6 +2,6 @@ CONFIG_ILI9340=y
|
|||
CONFIG_ILI9340_LCD_SEEED_TFTV2=y
|
||||
|
||||
CONFIG_LVGL=y
|
||||
CONFIG_LVGL_HOR_RES=320
|
||||
CONFIG_LVGL_VER_RES=240
|
||||
CONFIG_LVGL_HOR_RES_MAX=320
|
||||
CONFIG_LVGL_VER_RES_MAX=240
|
||||
CONFIG_LVGL_DPI=100
|
||||
|
|
|
@ -4,6 +4,6 @@ CONFIG_SDL_DISPLAY_Y_RES=240
|
|||
|
||||
CONFIG_KSCAN=y
|
||||
CONFIG_LVGL_POINTER_KSCAN=y
|
||||
CONFIG_LVGL_HOR_RES=320
|
||||
CONFIG_LVGL_VER_RES=240
|
||||
CONFIG_LVGL_HOR_RES_MAX=320
|
||||
CONFIG_LVGL_VER_RES_MAX=240
|
||||
CONFIG_LVGL_DPI=100
|
||||
|
|
|
@ -4,6 +4,6 @@ CONFIG_SDL_DISPLAY_Y_RES=240
|
|||
|
||||
CONFIG_KSCAN=y
|
||||
CONFIG_LVGL_POINTER_KSCAN=y
|
||||
CONFIG_LVGL_HOR_RES=320
|
||||
CONFIG_LVGL_VER_RES=240
|
||||
CONFIG_LVGL_HOR_RES_MAX=320
|
||||
CONFIG_LVGL_VER_RES_MAX=240
|
||||
CONFIG_LVGL_DPI=100
|
||||
|
|
|
@ -3,7 +3,7 @@ CONFIG_SSD16XX=y
|
|||
|
||||
CONFIG_LVGL_COLOR_DEPTH_1=y
|
||||
CONFIG_LVGL_BITS_PER_PIXEL=1
|
||||
CONFIG_LVGL_HOR_RES=250
|
||||
CONFIG_LVGL_VER_RES=120
|
||||
CONFIG_LVGL_HOR_RES_MAX=250
|
||||
CONFIG_LVGL_VER_RES_MAX=120
|
||||
CONFIG_LVGL_DPI=130
|
||||
CONFIG_LVGL_VDB_SIZE=16
|
||||
|
|
|
@ -7,7 +7,7 @@ CONFIG_DISPLAY_LOG_LEVEL_ERR=y
|
|||
CONFIG_LOG=y
|
||||
|
||||
CONFIG_LVGL=y
|
||||
CONFIG_LVGL_OBJ_LABEL=y
|
||||
CONFIG_LVGL_OBJ_CONTAINER=y
|
||||
CONFIG_LVGL_OBJ_BUTTON=y
|
||||
CONFIG_LVGL_THEME_MATERIAL=y
|
||||
CONFIG_LVGL_USE_LABEL=y
|
||||
CONFIG_LVGL_USE_CONT=y
|
||||
CONFIG_LVGL_USE_BTN=y
|
||||
CONFIG_LVGL_USE_THEME_MATERIAL=y
|
||||
|
|
|
@ -15,60 +15,60 @@ CONFIG_FILE_SYSTEM_LITTLEFS=y
|
|||
CONFIG_LVGL=y
|
||||
# Make sure that the rendering task is always executed if we call
|
||||
# lv_task_handler by setting the refresh period to zero
|
||||
CONFIG_LVGL_SCREEN_REFRESH_PERIOD=0
|
||||
CONFIG_LVGL_DISP_DEF_REFR_PERIOD=0
|
||||
CONFIG_LVGL_COLOR_SCREEN_TRANSP=y
|
||||
CONFIG_LVGL_ANTIALIAS=y
|
||||
CONFIG_LVGL_ANIMATION=y
|
||||
CONFIG_LVGL_SHADOW=y
|
||||
CONFIG_LVGL_BLEND_MODES=y
|
||||
CONFIG_LVGL_OPA_SCALE=y
|
||||
CONFIG_LVGL_IMG_TRANSFORM=y
|
||||
CONFIG_LVGL_GROUP=y
|
||||
CONFIG_LVGL_GPU=y
|
||||
CONFIG_LVGL_USE_ANIMATION=y
|
||||
CONFIG_LVGL_USE_SHADOW=y
|
||||
CONFIG_LVGL_USE_BLEND_MODES=y
|
||||
CONFIG_LVGL_USE_OPA_SCALE=y
|
||||
CONFIG_LVGL_USE_IMG_TRANSFORM=y
|
||||
CONFIG_LVGL_USE_GROUP=y
|
||||
CONFIG_LVGL_USE_GPU=y
|
||||
CONFIG_LVGL_IMG_CF_INDEXED=y
|
||||
CONFIG_LVGL_IMG_CF_ALPHA=y
|
||||
CONFIG_LVGL_FILESYSTEM=y
|
||||
CONFIG_LVGL_USE_FILESYSTEM=y
|
||||
CONFIG_LVGL_DOUBLE_VDB=y
|
||||
CONFIG_LVGL_TEXT_USE_BIDI=y
|
||||
CONFIG_LVGL_TEXT_ARABIC_PERSIAN_CHARS=y
|
||||
CONFIG_LVGL_OBJ_REALIGN=y
|
||||
CONFIG_LVGL_OBJ_LABEL=y
|
||||
CONFIG_LVGL_OBJ_LABEL_TEXT_SEL=y
|
||||
CONFIG_LVGL_OBJ_LABEL_LONG_TXT_HINT=y
|
||||
CONFIG_LVGL_OBJ_IMAGE=y
|
||||
CONFIG_LVGL_OBJ_LINE=y
|
||||
CONFIG_LVGL_OBJ_ARC=y
|
||||
CONFIG_LVGL_OBJ_CONTAINER=y
|
||||
CONFIG_LVGL_OBJ_PAGE=y
|
||||
CONFIG_LVGL_OBJ_WINDOW=y
|
||||
CONFIG_LVGL_OBJ_TAB_VIEW=y
|
||||
CONFIG_LVGL_OBJ_TILE_VIEW=y
|
||||
CONFIG_LVGL_OBJ_CALENDAR=y
|
||||
CONFIG_LVGL_OBJ_SPINNER=y
|
||||
CONFIG_LVGL_OBJ_CANVAS=y
|
||||
CONFIG_LVGL_OBJ_BAR=y
|
||||
CONFIG_LVGL_OBJ_LINE_METER=y
|
||||
CONFIG_LVGL_OBJ_GAUGE=y
|
||||
CONFIG_LVGL_OBJ_CHART=y
|
||||
CONFIG_LVGL_OBJ_TABLE=y
|
||||
CONFIG_LVGL_OBJ_LED=y
|
||||
CONFIG_LVGL_OBJ_MSG_BOX=y
|
||||
CONFIG_LVGL_OBJ_TEXT_AREA=y
|
||||
CONFIG_LVGL_OBJ_SPINBOX=y
|
||||
CONFIG_LVGL_OBJ_BUTTON=y
|
||||
CONFIG_LVGL_OBJ_IMG_BUTTON=y
|
||||
CONFIG_LVGL_OBJ_IMG_BUTTON_TILED=y
|
||||
CONFIG_LVGL_OBJ_BUTTON_MATRIX=y
|
||||
CONFIG_LVGL_OBJ_KEYBOARD=y
|
||||
CONFIG_LVGL_OBJ_CHECK_BOX=y
|
||||
CONFIG_LVGL_OBJ_LIST=y
|
||||
CONFIG_LVGL_OBJ_DROP_DOWN_LIST=y
|
||||
CONFIG_LVGL_OBJ_ROLLER=y
|
||||
CONFIG_LVGL_OBJ_SLIDER=y
|
||||
CONFIG_LVGL_OBJ_SWITCH=y
|
||||
CONFIG_LVGL_OBJ_LED=y
|
||||
CONFIG_LVGL_OBJ_OBJMASK=y
|
||||
CONFIG_LVGL_THEME_MATERIAL=y
|
||||
CONFIG_LVGL_USE_BIDI=y
|
||||
CONFIG_LVGL_USE_ARABIC_PERSIAN_CHARS=y
|
||||
CONFIG_LVGL_USE_OBJ_REALIGN=y
|
||||
CONFIG_LVGL_USE_LABEL=y
|
||||
CONFIG_LVGL_LABEL_TEXT_SEL=y
|
||||
CONFIG_LVGL_LABEL_LONG_TXT_HINT=y
|
||||
CONFIG_LVGL_USE_IMG=y
|
||||
CONFIG_LVGL_USE_LINE=y
|
||||
CONFIG_LVGL_USE_ARC=y
|
||||
CONFIG_LVGL_USE_CONT=y
|
||||
CONFIG_LVGL_USE_PAGE=y
|
||||
CONFIG_LVGL_USE_WIN=y
|
||||
CONFIG_LVGL_USE_TABVIEW=y
|
||||
CONFIG_LVGL_USE_TILEVIEW=y
|
||||
CONFIG_LVGL_USE_CALENDAR=y
|
||||
CONFIG_LVGL_USE_SPINNER=y
|
||||
CONFIG_LVGL_USE_CANVAS=y
|
||||
CONFIG_LVGL_USE_BAR=y
|
||||
CONFIG_LVGL_USE_LINEMETER=y
|
||||
CONFIG_LVGL_USE_GAUGE=y
|
||||
CONFIG_LVGL_USE_CHART=y
|
||||
CONFIG_LVGL_USE_TABLE=y
|
||||
CONFIG_LVGL_USE_LED=y
|
||||
CONFIG_LVGL_USE_MSGBOX=y
|
||||
CONFIG_LVGL_USE_TEXTAREA=y
|
||||
CONFIG_LVGL_USE_SPINBOX=y
|
||||
CONFIG_LVGL_USE_BTN=y
|
||||
CONFIG_LVGL_USE_IMGBTN=y
|
||||
CONFIG_LVGL_IMGBTN_TILED=y
|
||||
CONFIG_LVGL_USE_BTNMATRIX=y
|
||||
CONFIG_LVGL_USE_KEYBOARD=y
|
||||
CONFIG_LVGL_USE_CHECKBOX=y
|
||||
CONFIG_LVGL_USE_LIST=y
|
||||
CONFIG_LVGL_USE_DROPDOWN=y
|
||||
CONFIG_LVGL_USE_ROLLER=y
|
||||
CONFIG_LVGL_USE_SLIDER=y
|
||||
CONFIG_LVGL_USE_SWITCH=y
|
||||
CONFIG_LVGL_USE_LED=y
|
||||
CONFIG_LVGL_USE_OBJMASK=y
|
||||
CONFIG_LVGL_USE_THEME_MATERIAL=y
|
||||
CONFIG_LVGL_FONT_MONTSERRAT_12=y
|
||||
CONFIG_LVGL_FONT_MONTSERRAT_14=y
|
||||
CONFIG_LVGL_FONT_MONTSERRAT_16=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue