18
EA KIT160-6
Bit Nr.
Bit Nr.
0 1 2 3 4 5 6 7 0 1 2 3
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
Byte 17
Byte 18
Byte 19
Byte 20
Byte 21
Byte 22
Byte 23
Byte 24
ESC
U
E
x1 y1 n1
Load image from EEPROM
Displays the image saved in the EEPROM with the number
n1
(0..255) at position
x1,y1
.
Example: $1B
$55 $45 $02
$03
$0E Displays image number 14 from the EEPROM at position 2,3.
ESC
U
L
x1 y1 data...
Upload image
Displays an image at position
x1,y1
.
data..:
- 1 byte for the image width in pixels
- 1 byte for the image height in pixels
- Image data: number = ((width+7) / 8) * height bytes.
1 byte stands for 8 horizontal pixels on the screen; 0=white, 1=black;
LSB: left, MSB: right; the image is stored from the top down.
The BMP2BLH.EXE -m program on the EA DISK240 floppy disk available
as an accessory creates the image data, including the width and height,
from monochrome Windows bitmap graphics (*.BMP).
Example:
$1B $55 $4C $09 $04 $0C $0C
$F0 $00 $FC $03 $FE $07 $6E $07 $FF $0F $FF $0F
$9F $0F $FF $0F $F6 $06 $0E $07 $FC $03 $F0 $00
Loads the adjacent image at position 9,4.
ESC
V
n1
Set graphics mode
Sets the link mode
n1
for the following graphics functions: ESC P (Set point), ESC G (straight line), ESC W
(Continue straight line), ESC R R (rectangle), ESC R N
(rounded rectangle), ESC R M (Fill area with pattern).
Example: $1B
$56 $03
Sets the link mode to inverse.
By way of example, a rectangle is drawn alongside with
the link modes set, delete and inverse on an existing
background.
Link mode n1:
1 = set: black pixels irrespective of the previous value (OR)
2 = delete: white pixels irrespective of the previous value
3 = inverse: changes black pixels to white pixels and vice versa (EXOR)
4 = replace: deletes the background and sets black pixels; only area with fill pattern
5 = inverse replace: fills background and sets white pixels; only area with fill pattern
ESC
W
x1 y1
Continue straight line
Continues a straight line from the last end or point drawn to
x1,y1
taking into account
the set graphics mode 'V'.
Example:
$1B
$47
$00
$00 $10 $04
$1B
$57
$16
$1B
$1B
$57
$30
$0F
A straight line is drawn from 0,0 to 16,4.It is then continued to 22,27 and to 48,15.
ESC
X
n1
Wait/pause
This command suspends the EA KIT160 for
n1
/10 seconds.
Example: $1B
$58 $0A
After this command the EA KIT160 waits for a second before the next command is processed.
ESC
Y
R
n1
Read input port
Reads in the input port (
n1
=1..8 = IN1..IN8). When
n1
=0, all the inputs are read in as 8-bit binary values
(MSB:IN8...In1:LSB); see application on page 5. The command "ESC Y I 1" puts this right (input open: 0).
Example: $1B
$59 $52 $03
Reads in port IN3. The result is sent via RS232.