port to v7.11.0
This commit is contained in:
parent
b030974480
commit
d5fb7ac93c
32
lv_conf.h
32
lv_conf.h
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* @file lv_conf.h
|
* @file lv_conf.h
|
||||||
* Configuration file for v7.7.0-dev
|
* Configuration file for v7.11.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -69,6 +69,9 @@
|
|||||||
/* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
|
/* Type of coordinates. Should be `int16_t` (or `int32_t` for extreme cases) */
|
||||||
typedef int16_t lv_coord_t;
|
typedef int16_t lv_coord_t;
|
||||||
|
|
||||||
|
/* Maximum buffer size to allocate for rotation. Only used if software rotation is enabled. */
|
||||||
|
#define LV_DISP_ROT_MAX_BUF (10U * 1024U)
|
||||||
|
|
||||||
/*=========================
|
/*=========================
|
||||||
Memory manager settings
|
Memory manager settings
|
||||||
*=========================*/
|
*=========================*/
|
||||||
@ -80,9 +83,9 @@ typedef int16_t lv_coord_t;
|
|||||||
#define LV_MEM_CUSTOM 0
|
#define LV_MEM_CUSTOM 0
|
||||||
#if LV_MEM_CUSTOM == 0
|
#if LV_MEM_CUSTOM == 0
|
||||||
/* Size of the memory used by `lv_mem_alloc` in bytes (>= 2kB)*/
|
/* Size of the memory used by `lv_mem_alloc` in bytes (>= 2kB)*/
|
||||||
# define LV_MEM_SIZE (256 * 1024)
|
# define LV_MEM_SIZE (256U * 1024U)
|
||||||
|
|
||||||
/* Complier prefix for a big array declaration */
|
/* Compiler prefix for a big array declaration */
|
||||||
# define LV_MEM_ATTR
|
# define LV_MEM_ATTR
|
||||||
|
|
||||||
/* Set an address for the memory pool instead of allocating it as an array.
|
/* Set an address for the memory pool instead of allocating it as an array.
|
||||||
@ -127,14 +130,13 @@ typedef int16_t lv_coord_t;
|
|||||||
#define LV_INDEV_DEF_DRAG_THROW 10
|
#define LV_INDEV_DEF_DRAG_THROW 10
|
||||||
|
|
||||||
/* Long press time in milliseconds.
|
/* Long press time in milliseconds.
|
||||||
* Time to send `LV_EVENT_LONG_PRESSSED`) */
|
* Time to send `LV_EVENT_LONG_PRESSED`) */
|
||||||
#define LV_INDEV_DEF_LONG_PRESS_TIME 400
|
#define LV_INDEV_DEF_LONG_PRESS_TIME 400
|
||||||
|
|
||||||
/* Repeated trigger period in long press [ms]
|
/* Repeated trigger period in long press [ms]
|
||||||
* Time between `LV_EVENT_LONG_PRESSED_REPEAT */
|
* Time between `LV_EVENT_LONG_PRESSED_REPEAT */
|
||||||
#define LV_INDEV_DEF_LONG_PRESS_REP_TIME 100
|
#define LV_INDEV_DEF_LONG_PRESS_REP_TIME 100
|
||||||
|
|
||||||
|
|
||||||
/* Gesture threshold in pixels */
|
/* Gesture threshold in pixels */
|
||||||
#define LV_INDEV_DEF_GESTURE_LIMIT 50
|
#define LV_INDEV_DEF_GESTURE_LIMIT 50
|
||||||
|
|
||||||
@ -240,7 +242,7 @@ typedef void * lv_fs_drv_user_data_t;
|
|||||||
* (I.e. no new image decoder is added)
|
* (I.e. no new image decoder is added)
|
||||||
* With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images.
|
* With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images.
|
||||||
* However the opened images might consume additional RAM.
|
* However the opened images might consume additional RAM.
|
||||||
* LV_IMG_CACHE_DEF_SIZE must be >= 1 */
|
* Set it to 0 to disable caching */
|
||||||
#define LV_IMG_CACHE_DEF_SIZE 1
|
#define LV_IMG_CACHE_DEF_SIZE 1
|
||||||
|
|
||||||
/*Declare the type of the user data of image decoder (can be e.g. `void *`, `int`, `struct`)*/
|
/*Declare the type of the user data of image decoder (can be e.g. `void *`, `int`, `struct`)*/
|
||||||
@ -403,13 +405,14 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in the i
|
|||||||
|
|
||||||
/* Demonstrate special features */
|
/* Demonstrate special features */
|
||||||
#define LV_FONT_MONTSERRAT_12_SUBPX 1
|
#define LV_FONT_MONTSERRAT_12_SUBPX 1
|
||||||
#define LV_FONT_MONTSERRAT_28_COMPRESSED 1
|
#define LV_FONT_MONTSERRAT_28_COMPRESSED 1 /*bpp = 3*/
|
||||||
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 1
|
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 1 /*Hebrew, Arabic, PErisan letters and all their forms*/
|
||||||
#define LV_FONT_SIMSUN_16_CJK 1
|
#define LV_FONT_SIMSUN_16_CJK 1 /*1000 most common CJK radicals*/
|
||||||
|
|
||||||
/*Pixel perfect monospace font
|
/*Pixel perfect monospace font
|
||||||
* http://pelulamu.net/unscii/ */
|
* http://pelulamu.net/unscii/ */
|
||||||
#define LV_FONT_UNSCII_8 1
|
#define LV_FONT_UNSCII_8 1
|
||||||
|
#define LV_FONT_UNSCII_16 0
|
||||||
|
|
||||||
/* Optionally declare your custom fonts here.
|
/* Optionally declare your custom fonts here.
|
||||||
* You can use these fonts as default font too
|
* You can use these fonts as default font too
|
||||||
@ -477,10 +480,10 @@ typedef void * lv_font_user_data_t;
|
|||||||
#define LV_THEME_DEFAULT_COLOR_PRIMARY lv_color_hex(0x01a2b1)
|
#define LV_THEME_DEFAULT_COLOR_PRIMARY lv_color_hex(0x01a2b1)
|
||||||
#define LV_THEME_DEFAULT_COLOR_SECONDARY lv_color_hex(0x44d1b6)
|
#define LV_THEME_DEFAULT_COLOR_SECONDARY lv_color_hex(0x44d1b6)
|
||||||
#define LV_THEME_DEFAULT_FLAG LV_THEME_MATERIAL_FLAG_LIGHT
|
#define LV_THEME_DEFAULT_FLAG LV_THEME_MATERIAL_FLAG_LIGHT
|
||||||
#define LV_THEME_DEFAULT_FONT_SMALL &lv_font_montserrat_12
|
#define LV_THEME_DEFAULT_FONT_SMALL &lv_font_montserrat_14
|
||||||
#define LV_THEME_DEFAULT_FONT_NORMAL &lv_font_montserrat_14
|
#define LV_THEME_DEFAULT_FONT_NORMAL &lv_font_montserrat_14
|
||||||
#define LV_THEME_DEFAULT_FONT_SUBTITLE &lv_font_montserrat_16
|
#define LV_THEME_DEFAULT_FONT_SUBTITLE &lv_font_montserrat_14
|
||||||
#define LV_THEME_DEFAULT_FONT_TITLE &lv_font_montserrat_18
|
#define LV_THEME_DEFAULT_FONT_TITLE &lv_font_montserrat_14
|
||||||
|
|
||||||
/*=================
|
/*=================
|
||||||
* Text settings
|
* Text settings
|
||||||
@ -513,7 +516,7 @@ typedef void * lv_font_user_data_t;
|
|||||||
|
|
||||||
/* Support bidirectional texts.
|
/* Support bidirectional texts.
|
||||||
* Allows mixing Left-to-Right and Right-to-Left texts.
|
* Allows mixing Left-to-Right and Right-to-Left texts.
|
||||||
* The direction will be processed according to the Unicode Bidirectioanl Algorithm:
|
* The direction will be processed according to the Unicode Bidirectional Algorithm:
|
||||||
* https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/
|
* https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/
|
||||||
#define LV_USE_BIDI 0
|
#define LV_USE_BIDI 0
|
||||||
#if LV_USE_BIDI
|
#if LV_USE_BIDI
|
||||||
@ -563,7 +566,7 @@ typedef void * lv_obj_user_data_t;
|
|||||||
* LV_EXT_CLICK_AREA_TINY: The extra area can be adjusted horizontally and vertically (0..255 px)
|
* LV_EXT_CLICK_AREA_TINY: The extra area can be adjusted horizontally and vertically (0..255 px)
|
||||||
* LV_EXT_CLICK_AREA_FULL: The extra area can be adjusted in all 4 directions (-32k..+32k px)
|
* LV_EXT_CLICK_AREA_FULL: The extra area can be adjusted in all 4 directions (-32k..+32k px)
|
||||||
*/
|
*/
|
||||||
#define LV_USE_EXT_CLICK_AREA LV_EXT_CLICK_AREA_FULL
|
#define LV_USE_EXT_CLICK_AREA LV_EXT_CLICK_AREA_TINY
|
||||||
|
|
||||||
/*==================
|
/*==================
|
||||||
* LV OBJ X USAGE
|
* LV OBJ X USAGE
|
||||||
@ -730,7 +733,6 @@ typedef void * lv_obj_user_data_t;
|
|||||||
# define LV_TABLE_CELL_STYLE_CNT 4
|
# define LV_TABLE_CELL_STYLE_CNT 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*Tab (dependencies: lv_page, lv_btnm)*/
|
/*Tab (dependencies: lv_page, lv_btnm)*/
|
||||||
#define LV_USE_TABVIEW 1
|
#define LV_USE_TABVIEW 1
|
||||||
# if LV_USE_TABVIEW != 0
|
# if LV_USE_TABVIEW != 0
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 6a39767f0676cbb8ed28ae9f6d82caf3c6ef1ea7
|
Subproject commit 8c96359f4199297809ab205870eb603b03d98b4e
|
||||||
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* @file lv_drv_conf.h
|
* @file lv_drv_conf.h
|
||||||
*
|
* Configuration file for v7.11.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -100,9 +100,6 @@
|
|||||||
/*Eclipse: <SDL2/SDL.h> Visual Studio: <SDL.h>*/
|
/*Eclipse: <SDL2/SDL.h> Visual Studio: <SDL.h>*/
|
||||||
# define MONITOR_SDL_INCLUDE_PATH <SDL2/SDL.h>
|
# define MONITOR_SDL_INCLUDE_PATH <SDL2/SDL.h>
|
||||||
|
|
||||||
/*Different rendering might be used if running in a Virtual machine*/
|
|
||||||
# define MONITOR_VIRTUAL_MACHINE 0
|
|
||||||
|
|
||||||
/*Open two windows to test multi display support*/
|
/*Open two windows to test multi display support*/
|
||||||
# define MONITOR_DUAL 0
|
# define MONITOR_DUAL 0
|
||||||
#endif
|
#endif
|
||||||
@ -114,12 +111,18 @@
|
|||||||
# define USE_WINDOWS 0
|
# define USE_WINDOWS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define USE_WINDOWS 0
|
|
||||||
#if USE_WINDOWS
|
#if USE_WINDOWS
|
||||||
# define WINDOW_HOR_RES 480
|
# define WINDOW_HOR_RES 480
|
||||||
# define WINDOW_VER_RES 320
|
# define WINDOW_VER_RES 320
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*----------------------------
|
||||||
|
* Native Windows (win32drv)
|
||||||
|
*---------------------------*/
|
||||||
|
#ifndef USE_WIN32DRV
|
||||||
|
# define USE_WIN32DRV 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/*----------------------------------------
|
/*----------------------------------------
|
||||||
* GTK drivers (monitor, mouse, keyboard
|
* GTK drivers (monitor, mouse, keyboard
|
||||||
*---------------------------------------*/
|
*---------------------------------------*/
|
||||||
|
|||||||
2
lvgl
2
lvgl
@ -1 +1 @@
|
|||||||
Subproject commit 43771fa2f71d5323ef9dffc1ff0aee326d59f5ce
|
Subproject commit ec9de515b36641be565d7bace5863ab631ce3b69
|
||||||
Loading…
x
Reference in New Issue
Block a user