Page 13
Printing and typographical errors reserved.
ELECTRONIC ASSEMBLY reserves the right to change specifications without prior notice.
EA eDIPTFT32-A
ALL COMMANDS AT A GLANCE
The built-in intelligence allows an easy creation of your individual screen content. Below mentioned
commands can be used either directly via the serial interface (see page 12) or together with the
selfdefinable macro (see page 28).
EA eDIPTFT32-A: Terminal commands
after
reset
Command
Codes
Remarks
Set terminal color
ESC
F
T
fg
bg
Preset color for terminal mode: fg= foreground color; bg= background color
8,1
Define window
ESC
T
W
n1
C
L
W
H
The terminal output is executed with font n1: 1=8x8; 2=8x16 only within the window from
column C and line L (=upper-left corner) with a width of W and a height of H (specifications in
characters). Display organisation 480x272: C=1..60; L=1..34/17; 272x480: C=1..34; L=1..60/30
8x16
1,1
60,17
Form feed FF (dec:12)
^L
The contents of the screen are deleted and the cursor is placed at pos. (1,1)
Carriage return CR (13)
^M
Cursor to the beginning of the line on the extreme left
Line feed LF (dec:10)
^J
Cursor 1 line lower, if cursor in last line then scroll
Position cursor
ESC
T
P
C
L
C=column; L=line; origin upper-left corner (1,1)
1,1
Cursor on/off
C
n1
n1=0: Cursor is invisible; n1=1: Cursor flashes;
1
Save cursor position
S
The current cursor position is saved
Restore cursor position
R
The last saved cursor position is restored
Terminal off
A
Terminal display is switched off; outputs are rejected
Terminal on
E
Terminal display is switched on;
on
Output version
ESC
T
V
The version no. is output in the terminal e.g. "EA eDIPTFT43-A V1.0 Rev.A"
Output projectname
J
The macrofile-projectname is output in the terminal e.g. "init / delivery state"
Output interface
Q
The used interface is output in the terminal e.g "RS232,115200 baud,ADR: $07"
Output informationen
ESC
T
I
The terminal is initialisized and cleared; the software version, hardware revision,
macrofile-projectname and CRC-checksum are output in the terminal
EA eDIPTFT32-A: Graphic commands
after
reset
Command
Codes
Remarks
Display commands (effect on the entire display)
Set display color
ESC
F
D
fg
bg
Defines color 1..32 for display and areas: fg=foreground color; bg=background color
8,1
Delete display
ESC
D
L
Delete display contents (all pixels to background color)
Fill display
ESC
S
Fill display contents (all pixels to foreground color)
Fill display with color
ESC
F
n1
Fill complete display content with color n1=1..32
Invert display
ESC
I
Invert display content
Commands for outputting strings
Set text color
ESC
F
Z
fg
bg
Color 1..32 (0=transparent) for string and character: fg=text color; bg=background color
8,0
Set font
ESC
Z
F
n1
Set font with the number n1
3
Font zoom factor
Z
n1
n2
n1 = X-zoom factor (1x to 8x); n2 = Y-zoom factor (1x to 8x)
1,1
Additional width/height
Y
n1
n2
n1=0..15: additional width left/right; n2=0..15: additional height top/bottom
0, 0
Spacewidth
J
n1
n1=0: use spacewidth from font; n1=1: same witdh as a number; n1>=2 width in dot
0
Text angle
W
n1
Text output angle: n1=0: 0°; n1=1: 90°; n1=2: 180°; n1=3: 270°
0
Output string
L: left justified
C: centered
R: right justified
ESC
Z
L
xx1
yy1
text
...
NUL
A string (...) is output to xx1,yy1
end of string: 'NUL' ($00), 'LF' ($0A) or 'CR' ($0D)
several lines are separated by the character '|' ($7C, pipe)
the character '\' ($5C, backslash) cancles the special function of '|' and '\'
C
R
Output string
in an area
(since V1.2)
ESC
Z
B
xx1
yy1
xx2 yy2
n1
text
...
NUL
Output a string (...) inside area from xx1,yy1 to xx2,yy2 at position n1=1..9;
the area will be filled with background color;
n1=1: Top Left; n1=2: Top Center; n1=3: Top Right
n1=4: Middle Left; n1=5: Middle Center; n1=6: Middle Right
n1=7: Bottom Left; n1=8: Bottom Center; n1=9: Bottom Right
String for terminal
ESC
Z
T
text ...
Command for outputting a string from a macro to the terminal
Draw straight lines and points
Set color for lines
ESC
F
G
fg
bg
Colors 1..32 (0=transparent): fg = color for line; bg = pattern background
8,1
Draw rectangle
ESC
G
R
xx1
yy1
xx2 yy2
Draw four straight lines as a rectangle from xx1,yy1 to xx2,yy2
Draw straight line
D
xx1
yy1
xx2 yy2
Draw straight line from xx1,yy1 to xx2,yy2
Continue straight line
W
xx1
yy1
Draw a straight line from last end point to xx1, yy1
Draw point
P
xx1
yy1
Set a point at coordinates xx1, yy1
Point size/line thickness
Z
n1
n2
n1 = X-point size (1 to 15); n2 = Y-point size (1 to 15);
1,1
Pattern
M
n1
Set straight line/point pattern no. n1=1..255; 0=do not use pattern
0
Set start point
ESC
G
S
xx1
yy1
Set the last end point at coordinates xx1, yy1 for commands 'GW', 'GX' and 'GY' (since V1.2)
Draw X-Graph
X
xs
ya
yy1
Draw graph with fix x-steps (xs=1..127 or 129..255 for neg. steps) and variable amount (ya=1..255)
of y-values (since V1.2)
Draw Y-Graph
Y
ys
xa
xx1
Draw graph with fix y-steps (ys=1..127 or 129..255 for neg. steps) and variable amount (xa=1..255)
of x-values (since V1.2)
Change/draw rectangular areas
Delete area
ESC
R
L
xx1
yy1
xx2 yy2
Delete an area from xx1,yy1 to xx2,yy2 (fill with background color)
Fill area
S
xx1
yy1
xx2 yy2
Fill an area from xx1,yy1 to xx2,yy2 (fill with foreground color)
Fill area with color
F
xx1
yy1
xx2 yy2
n1 Fill an area from xx1,yy1 to xx2,yy2 with color n1=1..32
Invert area
I
xx1
yy1
xx2 yy2
Invert an area from xx1,yy1 to xx2,yy2
Copy area
C
xx1
yy1
xx2 yy2
xx3 yy3
Copy an area from xx1,yy1 to xx2,yy2 to new position xx3,yy3
Patterncolor
ESC
F
M
fg
bg
Color 1..32 (0=transp.) for monochrome pattern: fg=foreground; bg=background color
8,1
Area with fill pattern
R
M
xx1
yy1
xx2 yy2
n1 Draw an area from xx1,yy1 to xx2,yy2 with pattern n1
Draw box
O
xx1
yy1
xx2 yy2
n1 Draw a rectangle xx1,yy1 to xx2,yy2 and fill with pattern n1
Set color for border
ESC
F
R
c1
c2
c3
Set color for border segments: c1=frame outside; c2=frame inside; c3=filling
8,1,1
Set border type
R
E
n1
n2
Set border type n1=1..255; border angle: n2=0: 0°; n1=1: 90°; n1=2: 180°; n1=3: 270°
1, 0
Draw border box
R
xx1
yy1
xx2 yy2
Draw a border box from xx1,yy1 to xx2,yy2