Color send_commands – AMX 8.5" Color Passive LCD Touch Panels User Manual

Page 35

Advertising
background image

Programming

31

Color Passive-Matrix LCD Touch Panel

Color Send_Commands

Use the color Send_Commands to set the colors for text, buttons, and pages. Use the same

command for setting gray scale values only change the color number value to reflect the gray scale

(72-86) value.

Shorthand Send_Commands (Cont.)

@SWK

Changes the
wake-up string
sent to the Con-
troller when the
touch panel is
activated.

Syntax:

"’@SWK-<string>’"

Variables:

string = alphanumeric characters

Example:

SEND_COMMAND TP,"’@SWK-Touch Panel Activated’"

Sends Touch Panel Activated to the Central Controller.

Color Send_Commands

CALL

Sets the colors for
a variable text but-
ton.

You must use the variable text assignments to change button colors (see the Colors and
Programming Numbers table on page 26).

Syntax:

"’CALL<variable text address>-<data>’"

Variables:

You must have the variable text assignments to change button colors.

variable text address = 1 - 255

data = 6 color number series for:

FILL COLOR ON

FILL COLOR OFF

BORDER COLOR ON

BORDER COLOR OFF

TEXT COLOR ON

TEXT COLOR OFF

Example:

SEND_COMMAND TP,"’CALL1-87 72 87 72 72 87’"

Sets variable text button 1 to:

FILL COLOR ON = Black

FILL COLOR OFF = White

BORDER COLOR ON = Black

BORDER COLOR OFF = White

TEXT COLOR ON = White

TEXT COLOR OFF = Black

CBOFF

Sets the OFF
feedback border
color to the speci-
fied color.

Syntax:

"’CBOFF<variable text address>-<color_number>’"

Variables:

variable text address = 1 - 255

color number = See the Colors and Programming Numbers table on page 26.

Example:

SEND_COMMAND TP,"’CBOFF1-72’"

Sets the OFF feedback border color to White for the variable text button 1.

Advertising