beautypg.com

4 graphics commands – Matrix Orbital GLK12232-25-WBL User Manual

Page 32

background image

Command

Syntax

Default

Notes

Set text insertion point to
top left

FE 48
254 72
254 ’H’

This

command

moves

the

text

insertion

point

to the top left
of

the

display

area,

based

on

the metrics of the
current font. See
"Set font metrics"
for more details.

Set text insertion point us-
ing pixel values

FE 79 [x] [y]
254 121 [x] [y]
254 ’y’ [x] [y]

n/a

Sets text insertion
point to position
(x,y), where x and
y are in pixels.
Value is top left
corner of next text
character.

Set current font

FE 31 [font id]

254 49
254 ’1’

n/a

Sets font to [font
id]. Font must be
in memory.

Set font metrics

FE 32 [metrics]
254 50 [metrics]
254 ’2’ [metrics]

n/a

For definition of
[metrics] see sec-
tion 3.3.7.

8.4

Graphics Commands

Table 13: Graphic Commands

Command

Syntax

Notes

Set drawing color

FE 63 [color]

254 99 [color]
254 ’c’ [color]

Sets color (0 = white, 255 = black)
for the various drawing commands.

Draw line

FE 6C [x1][y1][x2][y2]
254 108 [x1][y1][x2][y2]
254 ’l’ [x1][y1][x2][y2]

Draws a line from x1,y1 to x2, y2. x
values are from 0 - 63 (decimal) and
y values from 0 - 239 (decimal).

Continue line

FE 65 [x][y]
254 101 [x][y]
254 ’e’ [x][y]

Continues line from last line end
(x2,y2) to (x,y). Uses current draw-
ing color.

Put pixel

FE 70 [x][y]
254 112 [x][y]
254 ’p’ [x][y]

Puts pixel in position (x,y). Uses
current drawing color.

Matrix Orbital

GLK12232-25-WBL

28