1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

docs(bar) fix default range

Related: https://github.com/lvgl/lvgl/pull/2845#issuecomment-981288322
This commit is contained in:
embeddedt 2021-11-29 10:59:44 -05:00 committed by GitHub
parent 1281abef9e
commit eeee48b1c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ Not only the end, but also the start value of the bar can be set, which changes
### Value and range
A new value can be set by `lv_bar_set_value(bar, new_value, LV_ANIM_ON/OFF)`.
The value is interpreted in a range (minimum and maximum values) which can be modified with `lv_bar_set_range(bar, min, max)`.
The default range is 1..100.
The default range is 0..100.
The new value in `lv_bar_set_value` can be set with or without an animation depending on the last parameter (`LV_ANIM_ON/OFF`).