8000 Support optional rlottie · OneKeyHQ/lv_binding_micropython@39c2df6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39c2df6

Browse files
committed
1 parent e7e4a1a commit 39c2df6

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

.github/workflows/unix_port.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- name: Checkout lv_bindings
2929
working-directory: ./lib/lv_bindings
3030
run: |
31-
git fetch --force ${{ github.event.repository.git_url }} "+refs/heads/*:refs/remotes/origin/*"
32-
git fetch --force ${{ github.event.repository.git_url }} "+refs/pull/*:refs/remotes/origin/pr/*"
31+
git fetch --force ${{ github.event.repository.html_url }} "+refs/heads/*:refs/remotes/origin/*"
32+
git fetch --force ${{ github.event.repository.html_url }} "+refs/pull/*:refs/remotes/origin/pr/*"
3333
git checkout ${{ github.sha }} || git checkout ${{ github.event.pull_request.head.sha }}
3434
git submodule update --init --recursive
3535
- name: Build mpy-cross

gen/gen_mpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ class MissingConversionException(ValueError):
507507
'long int' : '(long int)mp_obj_get_int',
508508
'long long' : '(long long)mp_obj_get_ull',
509509
'long long int' : '(long long int)mp_obj_get_ull',
510-
'float' : 'mp_obj_get_float',
510+
'float' : '(float)mp_obj_get_float',
511511
}
512512

513513
lv_to_mp = {

lv_conf.h

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
# define LV_MEM_CUSTOM_REALLOC m_realloc
6767
#endif /*LV_MEM_CUSTOM*/
6868

69+
/*Number of the intermediate memory buffer used during rendering and other internal processing mechanisms.
70+
*You will see an error log message if there wasn't enough buffers. */
71+
#define LV_MEM_BUF_MAX_NUM 16
72+
6973
/*Use the standard `memcpy` and `memset` instead of LVGL's own functions. (Might or might not be faster).*/
7074
#define LV_MEMCPY_MEMSET_STD 0
7175

@@ -156,7 +160,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
156160
/*Use exnternal renderer*/
157161
#define LV_USE_EXTERNAL_RENDERER 0
158162

159-
/*Use SDL renderer API*/
163+
/*Use SDL renderer API. Requires LV_USE_EXTERNAL_RENDERER*/
160164
#define LV_USE_GPU_SDL 0
161165
#if LV_USE_GPU_SDL
162166
# define LV_GPU_SDL_INCLUDE_PATH <SDL2/SDL.h>
@@ -570,6 +574,17 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
570574
# define LV_FREETYPE_CACHE_SIZE (16 * 1024)
571575
#endif
572576

577+
/* Rlottie library, check if available */
578+
#if defined __has_include
579+
# if __has_include (<rlottie_capi.h>)
580+
# define LV_USE_RLOTTIE 1
581+
# else
582+
# define LV_USE_RLOTTIE 0
583+
# endif
584+
#else
585+
#define LV_USE_RLOTTIE 0
586+
#endif
587+
573588
/*-----------
574589
* Others
575590
*----------*/

lvgl

Submodule lvgl updated 113 files

0 commit comments

Comments
 (0)
0