12
EA KIT160-6
BIT NR.
0 1
2 3
4 5
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
Byte 8
BIT NR.
0 1 2 3 4 5 6 7
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
Byte 8
Byte 9
Byte 10
Byte 11
Byte 12
Byte 13
Byte 14
Byte 15
Byte 16
User-definable
characters (code)
4x6
5x6
6x8
8x8
8x1
16x
16
1
1
1
1
2
2
3
3
2
4
5
4
6
5
3
2
7
6
8
9
7
4
10
8
11
9
5
3
12
13
10
14
11
6
15
12
16
17
13
7
4
18
14
19
15
8
20
21
16
ESC
E
n1 data
Define character
You can define up to 21 characters yourself (depending on the font size). These characters then
have the ASCII codes 1 to max. 21 and remain in an invisible screen RAM 128 bytes in size until the
supply voltage is switched off. In the case of a 4x6 font, up to 21 characters can be defined, whereas
only 8 characters can be defined for an 8x16 font. Please note that if you want to define several
characters in different fonts, you must bear in mind that a character with code 1 of the 8x16 font, for
example, requires the same amount of RAM as the characters with the codes 1 to 3 in the 4x6 font
(see the adjacent table).
Example 1:
$1B $45 $01
$04 $0E $15 $04 $04 $04 $04 $00
Defines an arrow pointing upward for ASCII no. 1
using the 6x8 character set.
Example 2:
$1B $45 $02
$08 $08 $08 $08 $08 $08 $08 $08 $08 $08 $49 $2A $1C $08 $00 $00
Defines an arrow pointing downward for ASCII no. 2 using the 8x16
character set.
ESC
F
n1 n2 n3
Set font
Sets the font with the number
n1
(1=4x6 uppercase letters only; 2=6x8; 3=8x16). In
addition, an enlargement factor (1..8 times) is set for the width (
n2
) and height (
n3
)
separately.
Example:
$1B
$46 $02 $03
$04
The 6x8 with 3 times the width and 4 times the height is set with immediate effect.
In the adjacent figure, the character 'E' is shown in the 6x8 font and with various
enlargement factors.
ESC
F
T
n1
Set terminal font
Sets the font with the number
n1
for terminal operation. The font for the terminal is always used without zoom and
in REPLACE mode.
Example:
$1B
$46 $54 $03
The 6x8 font is set as the terminal font with immediate effect.
ESC
G
x1 y1 x2 y2
Draw straight line
A straight line is drawn from
x1,y1
to
x2,y2
taking into account the graphics mode
set 'V' (set/delete/inverse).
Example:
$1B
$47 $03 $14
$28
$06
A straight line is drawn from 3,20 to 50,6.
ESC
H
x1 y1 x2 y2
Create hard copy of display contents
Requests the area from the upper left corner (
x1,y1
) to the lower right corner (
x2,y2
). The graphics chip then
immediately sends the width and height of the image section followed by the image data. See the upload image
command ('U') for the structure of the image data.
Example:
$1B
$48 $00 $00
$1F
$0F
The upper left part of the screen (32 x 16 pixels) is sent via RS-232.