
8.0 Colors
The ezLCD-30x has the ability to display up to 65,535 colors simultaneously. This is referred to as 16-
bit color. You may input 24-bit colors which the ezLCD-30x converts internally to 16-bit. To ease color
selection, an index of 200 customizable colors are provided internally (see COLORID). The first 168
colors have been preset in your ezLCD-30x, with the remaining colors available for your own custom
colors. Each color has been assigned an index number. The first 16 colors can be referenced by name
or by index. For example, the following two commands will both clear the screen to red:
CLS RED
Clear screen to red using color name
RED
CLS 4
Clear screen to red using color index number
4
8.1 Set Current Color
To set the current color, type
COLOR [C]
into your terminal program, where
{C}
is either the color
name or color index number. The current color will remain active until you change it.
8.2 Set Custom Color
The
COLORID
command allows you to set custom colors by entering their RGB values. The first 16
COLORIDs are not changeable.
COLORID [id][R][G][B]
To set a custom color, an index number
[id]
and RGB values
[R][G][B]
must be assigned. Use IBM
blue as an example. We know that the RGB values of IBM blue are Red=83, Green=120, and Blue=179
on the RGB scale. To assign IBM blue to color index number 180, type the following command:
COLORID 180 83 120 179
To test it enter:
CLS 180
The first 168 color values are pre-defined. While it is possible to change the color values from 16
through 168 with the
COLORID
command, it is not recommended. Instead, use index 169 through 199
for your custom colors. A full list of preset colors with their respective index numbers and color names
can be found in
Appendix C.
A macro has been included on your ezLCD-30x which shows the 16 most commonly used colors along
with their color index numbers. Type
PLAY COLORS
in your terminal program to run this macro.
17
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 ...