Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ TARGET = $(addprefix $(BUILD_OBJ_DIR)/, $(patsubst ./%, %, $(OBJS)))

all: default

$(BUILD_OBJ_DIR)/%.o: %.c
$(BUILD_OBJ_DIR)/%.o: %.c lv_conf.h
@mkdir -p $(dir $@)
@$(CC) $(CFLAGS) -c $< -o $@
@echo "CC $<"

$(BUILD_OBJ_DIR)/%.o: %.S
$(BUILD_OBJ_DIR)/%.o: %.S lv_conf.h
@mkdir -p $(dir $@)
@$(CC) $(CFLAGS) -c $< -o $@
@echo "CC $<"

$(BUILD_OBJ_DIR)/%.o: %.cpp
$(BUILD_OBJ_DIR)/%.o: %.cpp lv_conf.h
@mkdir -p $(dir $@)
@$(CXX) $(CFLAGS) -c $< -o $@
@echo "CXX $<"
Expand Down
38 changes: 31 additions & 7 deletions lv_conf.defaults
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
LV_COLOR_DEPTH 32
LV_MEM_SIZE (1024 * 1024)
LV_USE_MATRIX 1
LV_USE_FLOAT 1
LV_USE_LOTTIE 1

LV_USE_STDLIB_MALLOC LV_STDLIB_CLIB
LV_USE_STDLIB_STRING LV_STDLIB_CLIB
LV_USE_STDLIB_SPRINTF LV_STDLIB_CLIB

# LV_USE_OS LV_OS_PTHREAD
# LV_DRAW_SW_DRAW_UNIT_CNT 2
Comment on lines +7 to +8
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# LV_USE_OS LV_OS_PTHREAD
# LV_DRAW_SW_DRAW_UNIT_CNT 2
LV_USE_OS LV_OS_PTHREAD
LV_DRAW_SW_DRAW_UNIT_CNT 1

Please test this with our medical demo. It might work better. If really so, let's use it as default.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried and and it has the slowness issue with 1 draw unit.


LV_USE_SYSMON 0
LV_USE_PERF_MONITOR 0

LV_USE_DRAW_SW_COMPLEX_GRADIENTS 1
LV_OBJ_STYLE_CACHE 1
Expand Down Expand Up @@ -34,13 +40,19 @@ LV_FONT_MONTSERRAT_28_COMPRESSED 1
LV_FONT_DEJAVU_16_PERSIAN_HEBREW 1
LV_FONT_SIMSUN_16_CJK 1
LV_FONT_UNSCII_8 1
LV_FONT_FMT_TXT_LARGE 1

LV_USE_IMGFONT 1
LV_USE_FS_STDIO 1
LV_FS_DEFAULT_DRIVER_LETTER 'A'
LV_FS_STDIO_LETTER 'A'

LV_USE_VECTOR_GRAPHIC 1
LV_USE_THORVG_INTERNAL 1
LV_USE_MATRIX 1
LV_USE_FLOAT 1
LV_USE_LOTTIE 1
LV_USE_IMGFONT 1
LV_USE_LZ4_INTERNAL 1
LV_USE_VECTOR_GRAPHIC 1
LV_USE_TINY_TTF 1
LV_USE_BARCODE 1
LV_USE_QRCODE 1
Expand All @@ -50,7 +62,18 @@ LV_USE_TJPGD 1
LV_USE_BMP 1
LV_USE_LODEPNG 1

LV_USE_LINUX_FBDEV 1
LV_USE_LINUX_FBDEV 1
LV_LINUX_FBDEV_RENDER_MODE LV_DISPLAY_RENDER_MODE_PARTIAL
LV_LINUX_FBDEV_BUFFER_COUNT 2
LV_LINUX_FBDEV_BUFFER_SIZE 60

LV_USE_LINUX_DRM 0

LV_USE_SDL 0

LV_USE_WAYLAND 0

LV_USE_EVDEV 1

LV_USE_DEMO_WIDGETS 1
LV_USE_DEMO_KEYPAD_AND_ENCODER 1
Expand All @@ -62,4 +85,5 @@ LV_USE_DEMO_FLEX_LAYOUT 1
LV_USE_DEMO_MULTILANG 1
LV_USE_DEMO_TRANSFORM 1
LV_USE_DEMO_SCROLL 1
LV_USE_DEMO_HIGH_RES 1

34 changes: 25 additions & 9 deletions lv_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* - LV_STDLIB_RTTHREAD: RT-Thread implementation
* - LV_STDLIB_CUSTOM: Implement the functions externally
*/
#define LV_USE_STDLIB_MALLOC LV_STDLIB_BUILTIN
#define LV_USE_STDLIB_MALLOC LV_STDLIB_CLIB

/** Possible values
* - LV_STDLIB_BUILTIN: LVGL's built in implementation
Expand All @@ -48,7 +48,7 @@
* - LV_STDLIB_RTTHREAD: RT-Thread implementation
* - LV_STDLIB_CUSTOM: Implement the functions externally
*/
#define LV_USE_STDLIB_STRING LV_STDLIB_BUILTIN
#define LV_USE_STDLIB_STRING LV_STDLIB_CLIB

/** Possible values
* - LV_STDLIB_BUILTIN: LVGL's built in implementation
Expand All @@ -57,7 +57,7 @@
* - LV_STDLIB_RTTHREAD: RT-Thread implementation
* - LV_STDLIB_CUSTOM: Implement the functions externally
*/
#define LV_USE_STDLIB_SPRINTF LV_STDLIB_BUILTIN
#define LV_USE_STDLIB_SPRINTF LV_STDLIB_CLIB

#define LV_STDINT_INCLUDE <stdint.h>
#define LV_STDDEF_INCLUDE <stddef.h>
Expand All @@ -68,7 +68,7 @@

#if LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN
/** Size of memory available for `lv_malloc()` in bytes (>= 2kB) */
#define LV_MEM_SIZE (1024 * 1024)
#define LV_MEM_SIZE (64 * 1024U) /**< [bytes] */

/** Size of the memory expand for `lv_malloc()` in bytes */
#define LV_MEM_POOL_EXPAND_SIZE 0
Expand Down Expand Up @@ -173,6 +173,10 @@
#define LV_DRAW_SW_SUPPORT_A8 1
#define LV_DRAW_SW_SUPPORT_I1 1

/* The threshold of the luminance to consider a pixel as
* active in indexed color format */
#define LV_DRAW_SW_I1_LUM_THRESHOLD 127

/** Set number of draw units.
* - > 1 requires operating system to be enabled in `LV_USE_OS`.
* - > 1 means multiple threads will render the screen in parallel. */
Expand Down Expand Up @@ -590,7 +594,7 @@
/** Enable handling large font and/or fonts with a lot of characters.
* The limit depends on the font size, font face and bpp.
* A compiler error will be triggered if a font needs it. */
#define LV_FONT_FMT_TXT_LARGE 0
#define LV_FONT_FMT_TXT_LARGE 1

/** Enables/disables support for compressed fonts. */
#define LV_USE_FONT_COMPRESSED 0
Expand Down Expand Up @@ -790,7 +794,7 @@
/* File system interfaces for common APIs */

/** Setting a default driver letter allows skipping the driver prefix in filepaths. */
#define LV_FS_DEFAULT_DRIVER_LETTER '\0'
#define LV_FS_DEFAULT_DRIVER_LETTER 'A'

/** API for fopen, fread, etc. */
#define LV_USE_FS_STDIO 1
Expand Down Expand Up @@ -1138,7 +1142,7 @@
#if LV_USE_LINUX_FBDEV
#define LV_LINUX_FBDEV_BSD 0
#define LV_LINUX_FBDEV_RENDER_MODE LV_DISPLAY_RENDER_MODE_PARTIAL
#define LV_LINUX_FBDEV_BUFFER_COUNT 0
#define LV_LINUX_FBDEV_BUFFER_COUNT 2
#define LV_LINUX_FBDEV_BUFFER_SIZE 60
#endif

Expand Down Expand Up @@ -1170,11 +1174,20 @@
/** Driver for /dev/dri/card */
#define LV_USE_LINUX_DRM 0

#if LV_USE_LINUX_DRM

/* Use the MESA GBM library to allocate DMA buffers that can be
* shared across sub-systems and libraries using the Linux DMA-BUF API.
* The GBM library aims to provide a platform independent memory management system
* it supports the major GPU vendors - This option requires linking with libgbm */
#define LV_LINUX_DRM_GBM_BUFFERS 0
#endif

/** Interface for TFT_eSPI */
#define LV_USE_TFT_ESPI 0

/** Driver for evdev input devices */
#define LV_USE_EVDEV 0
#define LV_USE_EVDEV 1

/** Driver for libinput input devices */
#define LV_USE_LIBINPUT 0
Expand Down Expand Up @@ -1289,11 +1302,14 @@
#endif

/** High-resolution demo */
#define LV_USE_DEMO_HIGH_RES 0
#define LV_USE_DEMO_HIGH_RES 1

/* Smart watch demo */
#define LV_USE_DEMO_SMARTWATCH 0

/** ECG demo */
#define LV_USE_DEMO_ECG 0

/*--END OF LV_CONF_H--*/

#endif /*LV_CONF_H*/
Expand Down