feat(barcode): add vertical display mode (#4564)
Signed-off-by: liujp <liujp@xiaomi.com> Co-authored-by: liujp <liujp@xiaomi.com>
This commit is contained in:
@@ -15,8 +15,9 @@ Use :c:expr:`lv_barcode_create()` to create a barcode object, and use
|
||||
:c:expr:`lv_barcode_update()` to generate a barcode.
|
||||
|
||||
Call :c:expr:`lv_barcode_set_scale()` or :c:expr:`lv_barcode_set_dark/light_color()`
|
||||
to adjust scaling and color, and call :c:expr:`lv_barcode_update()` again to
|
||||
regenerate the barcode.
|
||||
to adjust scaling and color, call :c:expr:`lv_barcode_set_direction()` will set
|
||||
direction to display, and call :c:expr:`lv_barcode_update()` again to regenerate
|
||||
the barcode.
|
||||
|
||||
Notes
|
||||
-----
|
||||
@@ -26,6 +27,7 @@ Notes
|
||||
display will be incomplete due to truncation.
|
||||
- The scale adjustment can only be an integer multiple, for example,
|
||||
:c:expr:`lv_barcode_set_scale(barcode, 2)` means 2x scaling.
|
||||
- The direction adjustment can be `LV_DIR_HOR` or `LV_DIR_VER`
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
Reference in New Issue
Block a user