Commit Graph

283 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
62fc7123f1 feat(gridnav): add lv_gridnav (#2911)
* add first implememtation

* Update src/extra/others/gridnav/lv_gridnav.c

Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>

* minor fix

* add example and minor fixes

* add more examples

* add more examples

* code formatting

* add LV_GRIDNAC_CTRL_SCROLL_FIRST

* code formatting

* add example for list

* add docs

* Misc:  improvements to gridnav docs (#2994)

Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
Co-authored-by: Ken Carpenter <62639971+FoundationKen@users.noreply.github.com>
2022-01-20 10:29:40 +01:00
ckielstra
febafd1cc7
chore: many trivial spelling and layout fixes (#3008)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-17 08:10:23 -05:00
Gabor Kiss-Vamosi
86525c35ba chore(lv_conf): add comment about the widgets demo might require more memory 2022-01-15 19:57:19 +01:00
Mariotaku
49dc90a2b6
fix(sdl): fix clipped image drawing (#2992)
* fixed clipped image drawing

* make sdl blend mode a feature toggle

* improved textarea cursor fidelity

* added some comment to config

* updated config header

* updated formatting
2022-01-13 16:56:56 +01:00
X-Ryl669
6617385f8a
feat(draw): add gradient dithering support (#2872)
* Add dithering to gradients

* Add support for 8x8 matrix for ordered dithering

* Fix CI errors

* Try error diffusion on vertical gradient too

* Vertical error diffusion dithering

* Add support for runtime based dithering mode selection (from none, ordered, error diffusion).

* Reduce the binary size of the code by sharing the dithering table when appropriate.

* Fix CI

* Fix CI

* Review corrections

* Fix union mapping

* Revert bg_color changes

* Fix for keeping bg_color in the API.

* Fix after review

* Add support for setting multiple stops per gradient in the style API

* Let's make an example

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-11 12:38:30 +01:00
Gabor Kiss-Vamosi
db53ea925c arch(draw): allow replacing the draw engine
BREAKING CHANGE: the API of lv_draw_... function have been changed
2021-12-21 15:54:22 +01:00
Gabor Kiss-Vamosi
740d7400dd chore(conf): do not enable demos by default 2021-12-21 13:31:05 +01:00
Gabor Kiss-Vamosi
6f40db2752 chore(conf) update lv_conf_template.h with demos 2021-12-16 20:52:18 +01:00
_VIFEXTech
8a2c670be4
feat(others) add monkey test (#2885)
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(refr) add reset of FPS statistics

* fix(conf) mismatched macro judgment

* feat(others) add monkey test

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* fix(monkey) use lv_memset_00 to initialize monkey config

* fix(monkey) random upper limit value

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* feat(examples) add monkey test example

* feat(docs) add monkey test description

* feat(monkey) add user_data

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* docs(monkey) add instructions

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* fix(monkey) EX -> EXAMPLE

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* feat(monkey) add comments to monkey config

* docs(monkey) update usage

* feat(Kconfig) add monkey test configuration

* fix(monkey) rand() -> lv_rand()

* feat(example) add button monkey test

* docs(monkey) add button introduction

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* fix(monkey) obj -> monkey

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2021-12-14 20:55:45 +01:00
_VIFEXTech
216298d6e9
fix(conf) mismatched macro judgment (#2843)
* fix(Kconfig) remove duplicate LV_BUILD_EXAMPLES configuration

* feat(refr) add reset of FPS statistics

* fix(conf) mismatched macro judgment

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
2021-11-29 11:42:08 +01:00
HX2003
ad947d3085
feat(widgets): add menu widget (#2603)
* add menu widget

* Update lv_example_widgets.h

* fix errors

* Update lv_menu.c

* try to fix errors

* micropython

* Fix colons

* Simplify and optimise

* Refactor

* Update lv_example_menu_3.c

* Update lv_example_menu_3.c

* Add simple micropython examples

* Improvements

* Automatically set clickable flags

* Custom header example

* Include example

* Refactor again

* Fix error

* Fix error

* Add back micropython example

* Hide back btn by default

* Add config

* Fix spacing

* Fix spacing

* Docs

* Update lv_theme_default.c

* Remove shaded text

* Improve clarity

* Create index.rst

* Update custom header example

* Change lv_menu_set_mode_sidebar to lv_menu_set_sidebar_page

* Fix unused variable

* Added ability to set title to page

* Flex

* Simplify sidebar check

* Rename mode and update header btn

* Run lv_conf_internal_gen.py

* Run code-format.sh

* Add contributors

* Micropython example 3

* Micropython example 4

* Improve docs
2021-11-29 11:33:34 +01:00
guoweilkd
81f7d50c45
feat(freetype): support bold and italic (#2824)
* feat(freetype):support bold and italic

* fix(format): replace code-format.sh with code-format.py

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-24 20:19:09 +01:00
Xiang Xiao
3035d27d4a
chore(conf): ensure the template and generated file conform the coding style (#2823)
* fix(conf): ensure the template and generated file conform the coding style

and remove lv_conf_internal.h from the excluding list of code-format.cfg

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(conf): regenerate lv_conf_internal.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-22 09:52:26 +01:00
_VIFEXTech
a97ac7ec8e
feat(lib) add ffmpeg video and image decoder (#2805)
* add ffmpeg decoder to extra/libs

* fix(Kconfig) add ffmpeg configuration

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* feat(example) add ffmpeg decoder example

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* update lv_conf_template.h

* feat(example) add picture and video to ffmpeg example

* docs(libs) update FFMpeg introduction

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* fix(ffmpeg) replace with new videos and examples

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

* fix(ffmpeg) remove the include of lv_img_cache.h

* fix(ffmpeg) add LV_ASSERT_OBJ

* Update examples/libs/ffmpeg/lv_example_ffmpeg_2.c

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-19 08:49:39 +01:00
Gabor Kiss-Vamosi
77e76aab21 chore(version) update version number to v8.1.1-dev 2021-11-10 12:21:29 +01:00
Gabor Kiss-Vamosi
d38eb1e689 release v8.1 2021-11-10 12:17:53 +01:00
Xiang Xiao
ddfdccac3c
fix(conf): Make LV_COLOR_MIX_ROUND_OFS configurable (#2766)
* fix(config): check macro equal one correctly

1.remove all tabs from lv_conf_internal_gen.py
2.make the generated code align each other

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(conf): Make LV_COLOR_MIX_ROUND_OFS configurable

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-08 14:40:08 +01:00
_VIFEXTech
abcf5660a9 fix(conf) better support bool option from Kconfign (#2555)
* fix(arc) format code

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* fix(Kconfig) add missing LV_BUILD_EXAMPLES configuration

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* fix(fsdrv): remove the seek call in fs_open (#2736)

since the file should be located at zero after open

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* docs(os) add example and clarify some poinits

* fix(draw border):border draw error if border width > radius (#2739)

* fix(label) consider base dir lv_label_get_letter_pos in special cases

related to https://github.com/lvgl/lvgl/issues/2712#issuecomment-953463193

* improve lv_conf_internal_gen.py for better Kconfig support

Co-authored-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
Co-authored-by: guoweilkd <guowei15@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-05 15:42:42 +01:00
Gabor Kiss-Vamosi
acd0f4fbc7 feat: add LV_USE_MEM_PERF/MONITOR_POS
fixes #2735
2021-11-05 13:27:40 +01:00
Xiang Xiao
83f9c30985
feat(conf): make LV_MEM_BUF_MAX_NUM configurable (#2747)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-02 19:29:37 +01:00
Gabor Kiss-Vamosi
924bc754ad fix various minor warnings
- remove stdio.h when possible
- use LV_LOG_WARN to instead of printf
2021-10-26 10:06:29 +02:00
Gabor Kiss-Vamosi
03fff13f62
feat(rlottie) add LVGL-Rlottie interface as 3rd party lib (#2700) 2021-10-22 15:44:43 +02:00
Kenji Mouri
bbad478ce6
feat(fsdrv) add driver based on Win32 API (#2701) 2021-10-20 11:35:11 +02:00
Xiang Xiao
4baaa6fe07
fix(kconfig) sync Kconfig with the latest lv_conf_template.h (#2662)
* fix(conf): correct LV_USE_EXTERNAL_RENDERER and LV_USE_GPU_SDL related setting

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(Kconfig): typo error in the font and theme related setting

and correct the default value and sequence

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(Kconfig): Add the missing misc config

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(Kconfig): sync widget and theme in Kconfig with lv_conf_template.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(Kconfig): add the option for 3rd party library and examples

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-15 11:34:16 +02:00
Xiang Xiao
7124ef7761
fix(conf) make a better style alignment in lv_conf_internal.h (#2652)
and reorder Kconfig and src/lv_conf_kconfig.h as lv_conf_template.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-12 18:15:05 +02:00
Gabor Kiss-Vamosi
18f61c5f77
arch add small 3rd party libs to lvgl (#2569)
* move png, sjpg, bmp, gif, fs_if to extra/libs

* reorganize the examples

* update lv_conf_internal.h

* fix warnings

* add freetype

* remove unused assets

* add the new libs to build tests

* update the docs
2021-10-04 14:34:11 +02:00
Mariotaku
efc5bb40d9
feat(drawing) hardware accelerated rendering by SDL2 (#2484)
* Hardware accelerated SDL render WIP

* Rect drawing code cleanup

* Fixed arc drawing angle
Fixed compact rect drawing

* Refactoring
Fixed cache deinit order

* Image recolor
Drawing left and right border

* Math problems

* Improving draw cache

* Improving line drawing logic

* Improving arc drawing quality

* Added round function

* Attempts to render properly on Pi

* Updated lruc function names

* Updated symbol names

* Saved ram by reusing part of background rect

* Added outline drawing
Removed arc texture caching

* rect drawing cache rendering

* high efficiency rect shadow texture caching

* fixed simple borders drawing

* fixed generic borders drawing

* Simplified text atlas caching logic
Supports chroma keyed image

* Color palette WIP

* Improved draw cache

* Updated defines for better build

* renaming files for better consistency

* fix includes

* Updated lv_conf_internal with generator

* Fixing build issues

* fixed img rotation pivot

* better font atlas caching WIP

* fix includes

* full font atlas support
improved gpu caching for rect

* update conf header

* fix palette creation

* Fixed font atlas key matching

* fixed chroma key image background

* added 3bpp mask palette (WIP)

* fixed caching key initialization

* disabled gpu arc drawing for now
updated naming convention

* updated naming convention

* fix makefile and include path

* improved rect drawing when having masks

* improved rect drawing when having masks

* reduced texture allocation while drawing with mask

* accurate clipping for rects and texts

* fixed build error

* fixed build error

* line drawing WIP

* updated imports

* fixed freezes if LRU has smaller new item

* fixed clipping rect color

* fixed build error

* using built-in free function for LRU key

* Added custom background drawing function

* fixing imports

* fixed shadow bitmap on old SDL libs

* improved draw_img compatibility

* fixing font baking

* fixed font rendering

* fixed lv_draw_line check

* configurable SDL include path

* disabled SDL line drawing implementation

* supports screen resize

* sdl: Remove duplicated object

Observed issue:

  /usr/bin/ld: lv_gpu_sdl_texture_cache.o: \
  in function `_lv_gpu_sdl_texture_cache_init':
  lv_gpu_sdl_texture_cache.c:(.text+0x30): \
  multiple definition of `_lv_gpu_sdl_texture_cache_init'; \
  lv_gpu_sdl_texture_cache.o:lv_gpu_sdl_texture_cache.c:(.text+0x30): \
  first defined here

Forwarded: https://github.com/mariotaku/lvgl/pull/1
Relate-to: https://github.com/lvgl/lvgl/pull/2484
Signed-off-by: Philippe Coval <philippe.coval@huawei.com>

* Reduced opening of image

* Closes image resource properly

* improved draw image logic

* Moved driver related code to lv_drivers

* fixed lv_deinit implicit sdl code invocation

* improved shadow clipping

* fixed outline area invalidation

* updated comments

* formatted code using astyle

* Updated README

* formatted code

* fixed typo

* fixed static declaration

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Co-authored-by: Philippe Coval <philippe.coval@huawei.com>
2021-09-16 18:20:32 +02:00
ckielstra
5249a34d5d
docs more spelling fixes (#2499) 2021-08-27 12:15:39 +02:00
Miguel Magno
36ddbd0756
feat(mem) LV_MEM_POOL_ALLOC (#2458)
fixes  #2328

* Add LV_MEM_POOL_ALLOC #2328

* Add LV_MEM_POOL_ALLOC #2328

* Update lv_conf_template.h
2021-08-17 21:33:32 +02:00
Gabor Kiss-Vamosi
3c86d777c1 chore(format) lv_conf_template.h minor formatting
related to #2441
2021-08-09 11:16:16 +02:00
Themba Dube
2122583ec2 style fix usage of clang-format directives
We do not use clang-format anymore, so the directive has been removed from most headers.

lv_conf_template.h is untouched as a convenience for downstream projects which still use the tool.

Fixes #2441
2021-08-07 16:06:40 -04:00
Gabor Kiss-Vamosi
637b706ddc
perf(draw) reimplement circle drawing algorithms (#2374)
* perf(draw) reimplement circle drawing algorithms

Imporve the speed of circle drawing
Add circle draw caching
Various other speed improvements

* docs describe how to use masks

* fix(draw) add missing GC root usage
2021-07-27 19:16:00 +02:00
Neo
c98c8252ea
feat(snapshot) add API to take snapshot for object (#2353)
* Fix image zooming causes unexpected object size.

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>

* add lv_snapshot_take API.

* fix(img) invalidate size and layout on zoom and angle change

* fix(img) not self-repeating under some zoom level.

* fix(snapshot) fix to keep the original position

* Move various set_px_cb_xx functions to lv_hal_disp.c

* add snapshot API to store image to provided buffer

* minor fixes and refactoring

* Move snapshot source to extra/others/snapshot.

1. Update parameter buff to buf.
2. Add macro to disable lv_snapshot, enabled by default.

* docs(others) add the others folder with snapshot.md

* docs(snapshot) added doc and example for snapshot.

1. Update doc snapshot.md
2. Add example lv_example_snapshot_1 to folder examples/others/snapshot
3. Update lv_conf_template.h and lv_conf_internal.h
4. Remove lv_snapshot.c from lv_misc.mk
5. Add others to index.md

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>

* add micropython example for snapshot

Co-authored-by: Xu Xingliang <xuxingliang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-19 14:46:28 +02:00
Gabor Kiss-Vamosi
13ed195354
Merge pull request #2313 from NXPmicro/nxp_pxp_vglite_v8-dev
Nxp pxp vglite v8 dev
2021-06-22 11:50:28 +02:00
Seb Fagard
00c3eb197c fix(pxp): update RTOS macro for SDK 2.10
replace FSL_RTOS_FREE_RTOS by SDK_OS_FREE_RTOS in order to be aligned
with MCU SDK 2.10.
See MCUX-41577.

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
2021-06-21 10:53:38 +02:00
Gabor Kiss-Vamosi
8691611de2 update version numbers to v8.1.0-dev 2021-06-14 13:51:45 +02:00
Gabor Kiss-Vamosi
3810ef6211 update verson numbers to v8.0.1 2021-06-14 13:45:43 +02:00
Themba Dube
9d134a99e3 chore(lv_conf_template) fix spelling mistake
Also forces the docs to rebuild.
2021-06-07 15:22:59 -04:00
Gabor Kiss-Vamosi
c597d25798 Release v8.0.0 2021-06-01 09:48:03 +02:00
Gabor Kiss-Vamosi
a0eb46b042 feat(theme) add mono theme 2021-05-26 12:23:23 +02:00
Gabor Kiss-Vamosi
e2a7f559ab feat(bidi) make base dir a style property and rename lv_bidi_dir_t to lv_base_dir_t 2021-05-19 20:55:44 +02:00
guoweilkd
9fc556a90b
add span widget (#2227)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-05-13 17:42:33 +02:00
Gabor Kiss-Vamosi
6aa27cc11b refactor(label, text area) rename functions of text_sel to text_selection 2021-05-13 15:39:06 +02:00
ZhaoQiang-b45475
8f083a34fa
Extra: widgets: add a new widget animation image (#2167)
* Extra: widgets: add a new widget animation image

This widget is a combination of img and animation,
could achieve animation effects by
constantly switching a series imgs.

Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
Signed-off-by: Hui Song <hui.song_1@nxp.com>
Signed-off-by: Xiaolin He <xiaolin.he@nxp.com>

* example: add animimg example

Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
2021-05-07 14:50:48 +02:00
Gabor Kiss-Vamosi
a8016196a8 refactor(meter, chart) make them extra widgets instead of core 2021-05-02 22:01:56 +02:00
Gabor Kiss-Vamosi
4f46336a54 fix(theme) simplify the default theme 2021-04-28 10:11:26 +02:00
Gabor Kiss-Vamosi
2a07880db2 fix(lv_conf_template.h) remove lv_user_data_t as it's not used 2021-04-06 13:14:19 +02:00
Gabor Kiss-Vamosi
e97810c966 remove dead link from lv_Conf_template.h 2021-04-02 09:48:02 +02:00
Gabor Kiss-Vamosi
b22aa1497b Revert "fix(comment) remove https:// from lv_conf_template.h comments beacsue they caused nested comment warning"
The issue wasn't beacause of https:// but with  /*some/url/*/

This reverts commit bc081f6ef3.
2021-04-02 09:46:06 +02:00
Gabor Kiss-Vamosi
bc081f6ef3 fix(comment) remove https:// from lv_conf_template.h comments beacsue they caused nested comment warning
Fixes 66c1105ef6 (r48929310)
2021-03-31 20:13:46 +02:00