1. Home
  2. Docs
  3. ATFC Touch Screen
  4. Control Setting Command

Control Setting Command

The control setting command is a command sent from MCU to manipulate clarkwise touch screen controls defined in the resource file (.ers).

The command is

@CTRL control_ID,par1,par2...parN\r

General parameters for all the controls:

par1 ValueMeaning
0Disabled
1Enabled
2Disabled and invisible

Special parameters for different controls

Different controls can accept different special parameters as shown in the table below:

Controlpar1par2par3
ProgressBar0x11 = Set Control ReDraw Bar fill colorColor in RGB565 or Color KeywordN/A
Waveform3 = Redraw wave linesN/AN/A
4 = Clear wave lines and their dataN/AN/A
Date/Time0x11 = Set Font ColorColor in RGB565 or Color KeywordN/A
0x12 = Set Redraw Frame Line ColorColor in RGB565 or Color KeywordN/A
0x13 = Set Redraw Area Fill ColorColor in RGB565 or Color KeywordN/A
Area Button0x10 = Set StringString contentN/A
0x11 = Set Font ColorColor in RGB565 or Color KeywordN/A
0x12 = Set Redraw Frame Line ColorColor in RGB565 or Color KeywordN/A
0x13 = Set Redraw Area Fill ColorColor in RGB565 or Color KeywordN/A
String Control0x11 = Set Font ColorColor in RGB565 or Color KeywordN/A
0x12 = Set Redraw Frame Line ColorColor in RGB565 or Color KeywordN/A
0x13 = Set Redraw Area Fill ColorColor in RGB565 or Color KeywordN/A
Combo Box0x11 = Set Font ColorColor in RGB565 or Color KeywordN/A
0x12 = Set Redraw Frame Line ColorColor in RGB565 or Color KeywordN/A
0x13 = Set Redraw Area Fill ColorColor in RGB565 or Color KeywordN/A
0x20 = Set OptionOption Number.
If it is larger than the total option number, a new option will be created.
Option content
Was this article helpful to you? Yes No

How can we help?

Leave a Reply

×
×

Cart