Amir Gonnen
559b6458c0
fix(examples) remove symlinks ( #2406 )
...
Remove symlinks from Python examples because the JS simulator doesn't follow them and sees the target filename instead
2021-07-27 19:13:30 -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
guoweilkd
e23701e2c2
example(anim) add demo to use cubic-bezier ( #2393 )
...
* animation:add demo to use cubic-bezier
* fix minor fixes on layout and chart
Co-authored-by: guoweilkd <guowei15@xioami.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-27 19:14:44 +02:00
_VIFEXTech
202cf1c8cb
perf(anim_timeline) add lv_anim_timeline_stop() ( #2411 )
...
* add anim_timeline
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* add anim_timeline
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* add lv_anim_timeline.c to lv_misc.mk
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* LV_ANIM_TIMELINE_END uses global variables to replace macros, lv_anim_timeline_set_progress() adds user_data, act_time uses int32_t type
* solve the problem of uninitialized variable and act_time comparison
* add LV_ANIM_TIMELINE_CUSTOM_EXEC option
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* add LV_ANIM_TIMELINE_CUSTOM_EXEC in lv_conf_internal.h
* redesign lv_anim_timeline
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* add missing LV_USE_USER_DATA
* remove set_progress, update doc
* update workflow files
* Remove lv_example_anim_timeline_2.c and LV_ANIM_TIMELINE_CUSTOM_EXEC, update lv_anim_timeline_1.c example
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* fix warning
* fix(anim_timeline) heap use after free
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* fix(docs) wrong spelling of words in pictures
* perf(anim_timeline) add lv_anim_timeline_stop()
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-27 14:30:36 +02:00
Gabor Kiss-Vamosi
71a10e4ecd
fix(example) adjust the object sizes in lv_example_anim_timeline_1()
2021-07-23 13:40:42 +02:00
guoweilkd
7f9297879f
fix(grid.h) typos ( #2395 )
...
* fix(grid.h) typos
* grid:replace LV_COORD_MAX use LV_GRID_TEMPLATE_LAST
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-07-23 11:52:09 +02:00
Gabor Kiss-Vamosi
9ce2c7702d
Update index.rst
2021-07-22 21:56:00 +02:00
Uli Raich
c6e97162d1
added example lv_example_anim_timeline_1.py ( #2387 )
2021-07-21 10:37:22 +02:00
Amir Gonnen
55ef1826fc
fix(snapshot) add missing import on MicroPython example ( #2389 )
2021-07-20 19:37:00 -04: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
_VIFEXTech
690b3546d6
feat(anim) add anim timeline ( #2309 )
...
* add anim_timeline
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* add anim_timeline
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* add lv_anim_timeline.c to lv_misc.mk
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* LV_ANIM_TIMELINE_END uses global variables to replace macros, lv_anim_timeline_set_progress() adds user_data, act_time uses int32_t type
* solve the problem of uninitialized variable and act_time comparison
* add LV_ANIM_TIMELINE_CUSTOM_EXEC option
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* add LV_ANIM_TIMELINE_CUSTOM_EXEC in lv_conf_internal.h
* redesign lv_anim_timeline
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* add missing LV_USE_USER_DATA
* remove set_progress, update doc
* update workflow files
* Remove lv_example_anim_timeline_2.c and LV_ANIM_TIMELINE_CUSTOM_EXEC, update lv_anim_timeline_1.c example
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* fix warning
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-19 13:58:58 +02:00
embeddedt
ad1f91ab32
refactor(examples) drop usys import from header.py
...
This should not be needed as there is no platform-specific code anymore.
2021-07-14 12:47:59 -04:00
embeddedt
d8a3d3d0d7
fix(template) update indev template for v8
...
A few APIs were missed in the last attempt.
Fixes #2363
2021-07-11 15:47:23 -04:00
embeddedt
ef41450ed8
refactor(examples) drop JS-specific code from header.py
...
This logic was moved into the JS simulator itself
2021-07-11 15:09:25 -04:00
Amir Gonnen
5f6e07e57f
feat(calendar) improve MicroPython example ( #2366 )
...
Small improvements:
- Remove cast from get_pressed_date
- Check return value of get_pressed_date
- Call set_today_date on clicked date
- Compact highlighted_days
- Added a switch to show different header type
2021-07-11 11:39:08 -04:00
Amir Gonnen
1b6a39ca61
fix(examples) import 'u'-prefixed versions of modules ( #2365 )
...
import usys and utime instead of sys and time, as the latter are not available on all platforms
2021-07-10 19:24:16 -04:00
Gabor Kiss-Vamosi
0ae15bd470
fix(template) include lvgl.h in lv_port_*_template.c files
...
fixes : #2361
2021-07-09 13:29:29 +02:00
Amir Gonnen
c751c11a87
fix(examples) remove cast in MP scripts ( #2354 )
...
After https://github.com/lvgl/lv_binding_micropython/pull/161 merged, it is no longer needed to cast the result of 'e.get_target()'
Also, additional small fixes to allow CI improvements
2021-07-07 17:04:46 +02:00
Gabor Kiss-Vamosi
88c485949f
feat(event, widgets) improve the paramter of LV_EVENT_DRAW_PART_BEGIN/END
...
Add lv_<widget>_draw_part_type_t to widgets to precisly describe the hooked drawings.
Also add class_p element to lv_obj_draw_part_dsc_t to show what widgets lv_<widget>_draw_part_type_t needs to be used.
Related to: https://forum.lvgl.io/t/how-to-add-minor-division-lines-to-a-chart/5366/
2021-07-07 16:19:06 +02:00
Uli Raich
082244b467
feat(examples) added MP version of second tabview example ( #2347 )
2021-07-03 11:22:50 -04:00
Amir Gonnen
4114dc30e8
fix(examples) fix MicroPython examples and run the examples with CI ( #2339 )
...
* Fixes to micropython examples
Added missing images and fonts under 'assets'. Since .bin is in gitignore, renamed fonts to .fnt
* Update build_micropython workflow
Build the unix port dev variant and run tests.
See: https://github.com/lvgl/lv_binding_micropython/issues/151
2021-07-01 14:37:57 +02:00
Amir Gonnen
fe4afe8ef2
fix(examples) align with renamed Micropython APIs ( #2338 )
...
Align examples with renames on https://github.com/lvgl/lv_binding_micropython/issues/157
2021-06-29 17:03:07 -04:00
embeddedt
52d1c2e5b5
fix(examples) adjust canvas example for MicroPython API change
2021-06-21 10:27:40 -04:00
Themba Dube
4b8c73a577
feat(docs) improvements to examples
...
* examples are now loaded only when they are visible on your screen
* stylistic improvements
* support for a description
2021-06-18 12:25:49 -04:00
Gabor Kiss-Vamosi
25acaf45ca
docs list all examples on one page
2021-06-14 23:16:31 +02:00
Gabor Kiss-Vamosi
7971ade47b
docs(filesystem) update to v8
2021-06-14 11:07:15 +02:00
Themba Dube
6f37c4fc56
docs(examples) add MicroPython examples
2021-06-11 16:48:27 -04:00
dronecz
1a62f7a619
fix(arduino) fix the prototype of my_touchpad_read in the LVGL_Arduino.ino
2021-06-10 14:27:18 +02:00
Rop Gonggrijp
c7169762a3
More Snapable --> Snappable replacements ( #2304 )
2021-06-09 16:33:27 +02:00
Gabor Kiss-Vamosi
e697807cf5
fix(typo) rename LV_OBJ_FLAG_SNAPABLE to LV_OBJ_FLAG_SNAPPABLE
2021-06-09 16:05:39 +02:00
Gabor Kiss-Vamosi
8ab806459c
docs fix typo
2021-06-07 20:48:24 +02:00
Gabor Kiss-Vamosi
ca54ecfe0e
feat(event) pass the scroll aniamtion to LV_EVENT_SCROLL_BEGIN
...
Also add lv_example_tabview_2 for demonstration
2021-06-07 20:35:27 +02:00
Ali Rostami
5616471c27
Update quick-overview.md ( #2295 )
...
* Update quick-overview.md
* Update quick-overview.md
* Update lv_example_get_started_3.c
* Update coords.md
2021-06-07 14:32:00 +02:00
Uli Raich
c60ed68e94
adding micropython examples ( #2286 )
...
* adding micropython examples
* adding micropython examples
2021-06-07 13:56:08 +02:00
Gabor Kiss-Vamosi
77e2c1ff3d
fix(example) revert test code
2021-06-07 13:27:07 +02:00
Gabor Kiss-Vamosi
786db2afe6
fix(draw) with additive blending with 32 bit color depth
2021-06-07 13:22:12 +02:00
Gabor Kiss-Vamosi
be92f9f749
fix simplify lv_example_get_started_2
2021-05-31 12:49:49 +02:00
Gabor Kiss-Vamosi
66152438f6
fix minor fix in a scroll example
2021-05-30 20:39:35 +02:00
Gabor Kiss-Vamosi
6ab6134af1
fix warning
2021-05-30 14:02:39 +02:00
Gabor Kiss-Vamosi
9efb99d177
feat(example) add lv_example_scroll_6
2021-05-30 13:50:05 +02:00
Gabor Kiss-Vamosi
4780beae01
fix(obj) fix invalidation of objects on state change
2021-05-28 14:10:12 +02:00
Gabor Kiss-Vamosi
e3fb5d2840
fix minor example issues
2021-05-27 16:06:17 +02:00
Gabor Kiss-Vamosi
00dc5db326
fix some examples
2021-05-27 15:21:51 +02:00
Gabor Kiss-Vamosi
98c3c8eb5c
fix some examples
2021-05-27 15:12:50 +02:00
Gabor Kiss-Vamosi
1a3e704b25
fix example include paths
2021-05-27 12:34:54 +02:00
Gabor Kiss-Vamosi
20af77b142
fix(docs) fix missing meter example
2021-05-27 11:55:45 +02:00
Gabor Kiss-Vamosi
7fe16e2ed4
fix warning
2021-05-27 11:52:10 +02:00
Gabor Kiss-Vamosi
0cafde653d
feat(example) add style examples
2021-05-27 11:50:04 +02:00
Gabor Kiss-Vamosi
5bc529bc46
fix(example) fix the grid examples to not have scrollbars on the items
2021-05-26 23:11:29 +02:00
Gabor Kiss-Vamosi
46de101c97
feat(example) add RTL scroll example
2021-05-26 23:05:07 +02:00