8
EA KIT160-6
ALL COMMANDS AT A GLANCE
Command table for the EA KIT160
Command
Codes
Note
Commands for terminal operation
Form feed FF (dec:12)
^L
Deletes the screen and sets the cursor at position (1,1)
Carriage return CR(13)
^M
Positions the cursor on the left at the beginning of the line
Line feed LF (dec:10)
^J
Positions the cursor in the line below the current one. If the cursor is in the
last line, positions it in the 1st line
Cursor on/off
ESC
Q
C
n1
n1=0: cursor is not visible; n1=1: cursor flashes (inverse 6/10s)
Position cursor
ESC
O
n1
n2
n1=column; n2=line; upper left origin is (1,1)
Set terminal font
ESC
F
T
n1
n1=1: sets font no. n1 (1..16) for terminal operation
Text output commands
Text mode
ESC
L
n1
pat
Mode n1: 1=set; 2=delete; 3=inverse 4=replace; 5=inverse replace;
pat: pattern no. 0..7
Set font
ESC
F
n1
n2
n3
Sets font with the number n1 (1..16); n2=X- n3=Y-zoom factor (1x..8x)
Output string
horizontally
ESC
Z
L
x1
y1
Text
...
NUL
Outputs a string (...) at x1,y1. ´NUL´ ($00)=end of string;
lines are separated by the character '|' ($7C, dec:124);
'L':= left justified at x1; 'Z':= centered at x1; 'R':= right justified at x1;
y1 is always the upper edge of the string
Z
R
Output string rotated by
90° (vertically)
ESC
Z
O
x1
y1
Text
...
NUL
Outputs a string (...) rotated by 90° at x1,y1; ´NUL´ ($00)=end;
lines are separated by the character '|' ($7C, dec: 124);
'O':= top justified at y1; 'M':= vertically centered at y1; 'U':= bottom justified at
y1;
x1 is always the right edge of the string
M
U
Define character
ESC
E
n1
data ...
n1=character no.; data=number of bytes depending on current font
Drawing commands
Graphics mode
ESC
V
n1
Sets the drawing mode for the commands 'Set point', 'Draw straight line',
'Rectangle', 'Rouded rectangle' and 'Fill area with pattern'
n1: 1=set; 2=delete; 3=inverse; 4=replace; 5=inverse replace
Set point
ESC
P
x1
y1
Sets a pixel at position x1, y1
Draw straight line
ESC
G
x1
y1
x2
y2
Draws a straight line from x1,y1 to x2,y2
Continue straight line
ESC
W
x1
y1
Draws a straight line from the last end point to x1, y1
Rectangle commands
Draw rectangle
ESC
R
R
x1
y1
x2
y2
Draws a rectangle (frame) from x1,y1 to x2,y2
Draw rounded
rectangle
N
x1
y1
x2
y2
Draws a rectangle with rounded corners from x1,y1 to x2,y2
Delete area
L
x1
y1
x2
y2
Deletes an area from x1,y1 to x2,y2 (all pixels off)
Invert area
I
x1
y1
x2
y2
Inverts an area from x1,y1 to x2,y2 (inverts all pixels)
Fill area
S
x1
y1
x2
y2
Fills an area from x1,y1 to x2,y2 (all pixels on)
Fill area with pattern
M
x1
y1
x2
y2
pat Fills an area from x1,y1 to x2,y2 with the pattern pat (0..7)
Draw box
O
x1
y1
x2
y2
pat Draws a rectangle with the fill pattern pat (0..7); (always replace)
Draw rounded box
J
x1
y1
x2
y2
pat Draws a rectangle with the fill pattern mst (0..7); (always replace)
Bitmap image commands
Image from EEPROM
ESC
U
E
x1
y1
no
Loads an internal image with the number (0..255) from the EEPROM to x1,y1
Load image
L
x1
y1
data ...
Loads an image to x1,y1; see image structure for the data of the image
Send hard copy
H
x1
y1
x2
y2
Requests an image. Sends the width and height in pixels followed by the
actual image data via RS232
Display commands (which apply to the whole display)
Delete display
ESC
D
L
Deletes the contents of the display (all pixels off)
Invert display
I
Inverts the contents of the display (inverts all pixels)
Fill display
S
Fills the contents of the display (all pixels on)
Switch display off
A
Makes the contents of the display invisible, but they remain there and further
commands are possible
Switch display on
E
Makes the contents of the display visible again
Reset display
R
Resets and re-initializes the display controller
Macro commands
Execute macro
ESC
M
N
n1
Calls the (normal) macro with the number n1 (max. 7 levels)
Execute touch macro
T
n1
Calls the touch macro with the number n1 (max. 7 levels)
Execute port macro
P
n1
Calls the port macro with the number n1 (max. 7 levels)
Macros autom. cyclical
A
n1
n2
n3
Processes macros n1..n2 automatically cyclically; n3=pause in 1/10s
Macros autom.
ping-pong
J
n1
n2
n3
Processes macros n1..n2..n1 automatically (ping-pong); n3=pause in 1/10s