![EarthLCD ezLED-3 Series User Manual Download Page 43](http://html.mh-extra.com/html/earthlcd/ezled-3-series/ezled-3-series_user-manual_520905043.webp)
12.6 Dial Widget – DIAL
The DIAL widget allows you to display a dial that looks like an analog volume control found in
modern cars. The DIAL.EZM file in the \EZSYS\MACROS directory contains an example of this
widget. It can be invoked by typing PLAY DIAL in TERMIE.
dial [ID][x][y][radius][option][resolution][value][max][theme]
Example:
cls white
'clears the screen to white
theme 0 0 1 2 3 4 5 6 7 8 0
'colors are to distinguish different parts of widget
dial 1 100 85 75 1 1 25 100 0
'draws a dial
Images of Widget Options
:
Pressing the handle and spinning it will move the DIAL in increments of VALUE and output the
VALUE to the Command Port.
The DIAL command contains nine different parameters.
The
[ID]
value
1-99
, is the id number of this particular widget. You can create many different widgets
as long as each ID is unique regardless of widget type.
The
[x]
and
[y]
values designate the location of the widget on the screen as the
XY
coordinate of the
center of the dial.
The
[radius]
values means that the radius of the dial is 75, which the diameter will be 150.
The
[option]
designates the state of the dial. Option choices:
1=draw, 2=disabled.
The
[resolution]
designates the increments in the range. So the indicator will be a value of every
number, such as, 10,11,12,13,14,15.... has a resolution of
1
.
43
Dial
Summary of Contents for ezLED-3 Series
Page 25: ...25 Dial Choice Digital Meter ...
Page 26: ...26 Progress Bar Radio Button Slider Slider scroll bar option ...
Page 27: ...27 Static Box Framed Static Box ...
Page 66: ...ezLCD 302 240 x 160 4 3 4096 Reflective Color TFT Sunlight Readable NO Touchscreen 66 ...
Page 67: ...Appendix C EarthSEMPL Colors 67 ...
Page 68: ...68 ...
Page 69: ...69 ...
Page 70: ...70 ...
Page 71: ...71 ...
Page 78: ...78 ...