* fix(log): change fwrite to puts since not all platform support fwrite
This reverts commit 539388a66f5aca4e46869fca8da41634e8c5366e.
* fix(log): don't call printf and custom_print_cb at the same time
* fix(log): remove 768B temp buffer if LV_LOG_PRINTF == 1
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* feat(printf): support %pV format specifier
to support the recursive print:
https://www.kernel.org/doc/html/latest/core-api/printk-formats.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(log): save 256B temp buffer if LV_LOG_PRINTF == 0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* Update lv_spinbox.c
* Added support for moving the Spinbox digit position from right-to-left when clicking the button on an encoder. The default behaviour is when clicking the encoder button, the digit is moved from left-to-right (MSB to LSB).
* Added a check to see if the spinbox digit-count is just one. In that case it is pointless to check the buttonclick
* See also the spinbox.h file
* Update lv_spinbox.c
* Forgot the implementation of the setter function
* forgot a ;
* Update lv_spinbox.h
Adding Spinbox support for moving the digitposition both from left-to-right and right-to-left when editing a spinbox and clicking the encoder button. The current behaviour is clicking the encoder button only moves the digitposition from right to left (from MSB to LSB)
* Update lv_spinbox.c
Added brief / comment to new function
* Update lv_spinbox.h
More clear Brief / Comment
* Update lv_spinbox.c
nested function replaced by lv_pow fiunction
* Update lv_spinbox.h
removed spaces
* Update lv_spinbox.h
Replaced type used for direction of digit step when clicking an encoder with existing LVGL lv_dir_t
* Update lv_spinbox.c
Replaced type used for direction of digit step when clicking an encoder with existing LVGL lv_dir_t
* Update spinbox.md
Added comment for the new function 'lv_spinbox_set_digit_step_direction'
* Update src/extra/widgets/spinbox/lv_spinbox.h
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
* Update src/extra/widgets/spinbox/lv_spinbox.h
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
* Update lv_spinbox.c
bug: old definition LV_SPINBOX_DIGIT_DIR_TO_RIGHT changed to LV_DIR_RIGHT
* Update lv_spinbox.h
Extra linefeed removed
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
This change introduces new fields on `lv_disp_drv_t` that allow to
specify the size of the full display and the offset of the display
subsection that is being rendered to. The values are used to transform
the drawing area before calling `flush_cb` so that only the desired part
of the full display is being rendered to.
Relates to: lvgl/lv_drivers#166
If a child has pct width and the parent has LV_SIZE_CONTENT width, it results in a circular reference.
With fix zero content width is assumed for children in such case.
Besides if a child is center or right aligned the calculation of LV_SIZE_CONTENT might give in conter intuitive result.
To solve this center and right aligned children are not considered in LV_SIZE_CONTENT calculations.
The same applies for height.
* test(arc): Add test for valid creation
* test(arc): Add test for max value truncation
* test(arc): Add test for min value truncation
* test(arc): Add test for value adjustment after updating range
* test(arc): Update test for min value truncation
* test(arc): Add test for angle updating after changing to symmetrical mode
* test(arc): Add test for angle updating after changing to symmetrical mode and value is greater than middle range
* test(arc): Use unity setUp function
* remove API comments from lv_arc.c
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This will simplify packaging recipes, it's not mandatory,
but there is no reason to have it as an option if it does
not imply any regressions.
Relate-to: https://github.com/lvgl/lvgl/issues/2534
Signed-off-by: Philippe Coval <philippe.coval@huawei.com>
* build: Add install rule
This can help to install lvgl on systems,
for clients applications.
It's made for unix (Linux OE/Yocto actually)
if needed it can be enabled for other platforms too.
Relate-to: https://github.com/lvgl/lvgl/issues/2534
Forwarded: https://github.com/lvgl/lvgl/pull/2621
Signed-off-by: Philippe Coval <philippe.coval@astrolabe.coop>
* build: Make install rules optionnal
This change may be reverted, once verified it's harmless
It was tested using:
cmake -Dinstall=ON . && make install DESTDIR=/tmp/
Forwarded: https://github.com/lvgl/lvgl/pull/2621
Signed-off-by: Philippe Coval <philippe.coval@huawei.com>
* Create lv_example_chart_9.py
lv_example_chart_9.c was exactly what i needed, thanks for that one!
the only thing is, i needed it in MicroPython :-)
Here it is
* Update lv_example_chart_9.py
removed duplicate (... = lv.CHAR_POINT.NONE) lines
* Update lv_example_chart_9.py
restored gap
allocate_btn_areas_and_controls() returned very early if the same number buttuns were set
the the number fo rows can be different and is wasn't updated
fixes#2619
* feat(theme) add getter function for default theme
* fix(disp) set default theme also for non-default displays
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>