Skip to content

Commit

Permalink
Update lvgl.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
nagyrobi committed Apr 22, 2024
1 parent 4aa13dd commit 74a05cd
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions cookbook/lvgl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -282,29 +282,29 @@ The trick here is to have parent :ref:`lvgl-wgt-obj`, which holds the other widg
border_width: 0
align: center
scales:
range_from: -10
range_to: 10
angle_range: 180 # sets the total angle to 180 = starts mid left and ends mid right
ticks:
count: 0
indicators:
- line:
id: val_needle
width: 8
r_mod: 12 # sets line length by this much difference from the scale default radius
value: -2
- arc: # first half of the scale background
color: 0xFF3000
r_mod: 10 # radius difference from the scale default radius
width: 31
start_value: -10
end_value: 0
- arc: # second half of the scale background
color: 0x00FF00
r_mod: 10
width: 31
start_value: 0
end_value: 10
- range_from: -10
range_to: 10
angle_range: 180 # sets the total angle to 180 = starts mid left and ends mid right
ticks:
count: 0
indicators:
- line:
id: val_needle
width: 8
r_mod: 12 # sets line length by this much difference from the scale default radius
value: -2
- arc: # first half of the scale background
color: 0xFF3000
r_mod: 10 # radius difference from the scale default radius
width: 31
start_value: -10
end_value: 0
- arc: # second half of the scale background
color: 0x00FF00
r_mod: 10
width: 31
start_value: 0
end_value: 10
- obj: # to erase middle part of meter indicator line
height: 146
width: 146
Expand Down

0 comments on commit 74a05cd

Please sign in to comment.