line 32 of lv_example_scroll_6.c, if LV_USE_LARGE_COORD not configured,
x_sqr will overflow when r is greater than 256.
Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
Co-authored-by: liushuai25 <liushuai25@xiaomi.com>
* Refactor unit test scripts.
Does the following:
1. Remove as many dependencies on the operating system shell as possible.
For example, use of shutil.rmtree(...) instead of os.system('rm -r ...').
This brings this script a bit closer to being able to run on Windows.
2. Switch from os.system() to subprocess.check_call().
* This is a bit more secure as check_call() directly invokes the subprocess
without evaluation the arguments on a command-line.
* Removes the need to evaluate the return code as check_call() does this.
* Can directly set environment variables (e.g. env=cmd_env) instead of
including with subprocess invocation (e.g. BIN=test.bin).
3. Minor cleanup to main.py sys.argv parsing.
4. PEP8 formatting.
* Ignore FileNotFoundError for rmtree('report').
* Back to os.system for gcovr.
* Removed unused shutil import.
* - small with unneeded lv_obj_invalidate() fix in lv_obj_move_foreground() and lv_obj_move_background()
- added lv_obj_move_up() and lv_obj_move_down()
- used new functions in sample 2
- used lv_obj_swap() to shuffle (turn around) list
* solved build error
* added top and bottom buttons in sample
* fix(buf) correct the name error
* fix(format) make the indent become 4 space
* fix(print) use lv_version_xxx to serial for debug
* fix(arduino) optimize the code
* fix(arduino) use lv_version_xxx to serial
* docs(overview) fix draw_buf fieldname
Change display driver buffer field to the new v8 field name: draw_buf.
* docs(overview) fix lv_img_create parameters
lv_img_create only has 1 parameter in v8.
* docs(get-started) fix draw_buf fieldname
Display driver `buffer` field changed to the new v8 field name: `draw_buf`.
Commit f2c2393b305cd71d2fc01ff8945965dccb8488b4 (#2420) breaks lv_micropython esp32 port. Apparently main dependency is require for LVGL when building Micropython, otherwise GC related code breaks
This commit adds 'main' dependency to LVGL conditionally only if building inside lv_micropython.