8.2 Issuing Commands
Commands are issued to the display by the micro-controller. In a test setup commands can be issued
to the display by means of a BASIC program using the chr$( ) function. In the tables below, we’ve shown
commands in hex, ASCII and decimal form. All commands begin with the prefix character 0xFE (254
decimal). These commands are issued on the serial communications link (I
2
C or RS-232) at the currently
defined baud rate.
For example, using BASIC in a test setup, the user could issue the command to clear the screen on the
display by including the line;
in the user’s BASIC program .
Or, with C the user could (using Zcomm serial library)
8.3 Text Commands
Table 11: Text Commands
http://www.hammondmfg.com/scpg.htm
Command Syntax Default Notes
Auto scroll on FE 51
254 81
254 ’Q’
off Enables scroll at
bottom of screen.
Text will push
display up one
line to make room
for new line.
Auto scroll off FE 52
254 82
254 ’R’
off Disables auto
scroll. Text will
wrap to top left
and overwrite
existing text.
Set text insertion point FE 47 [col] [row] 254 71
[col] [row] 254 ’G’ [col]
[row]
n/a Sets text insertion
point using the
base size of the
current font.
Matrix Orbital GLK12232-25-WBL 27
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
Command Syntax Notes
Draw outline rectangle FE 72
[color][x1][y1][x2][y2]
254 114
[color][x1][y1][x2][y2]
254 r’
[color][x1][y1][x2][y2]
Draws a rectangular outline using
color [color].
Draw solid rectangle FE 78
[color][x1][y1][x2][y2]
254 120
[color][x1][y1][x2][y2]
254 ’x’
[color][x1][y1][x2][y2]
Draws a solid rectangle using color
[color].
Initialize bar graph [ref][type][x1][y1][x2][y2]
254 103
[ref][type][x1][y1][x2][y2]
254 ’g’
[ref][type][x1][y1][x2][y2]
Sets aside space for a bar graph.
[ref] is reference number (0-15) for
use by the Write to Bar Graph com-
mand. [type] has values:
0 = vertical, starting from bottom
1 = horizontal, starting from left
2 = vertical, starting from top 3 =
horizontal, starting from right
Write to bar graph FE 69 [ref][value]
254 105 [ref][value]
254 ’I’ [ref][value]
Fills the bar graph referred to as [ref]
from start to [value]. [value] is in
pixels.
Display saved bitmap FE 62 [ref][x][y]
254 98 [ref][x][y]
254 ’b’ [ref][x][y]
Causes bitmap [ref] to be displayed
with its top left corner starting at po-
sition (x,y).
8.5 Keypad Interface Commands
Table 15: Keypad Interface Commands
http://www.hammondmfg.com/scpg.htm
Command Syntax Default Notes
Auto repeat mode on FE 7E [0|1]
254 126 [0|1]
254 ’~’ [0|1]
off Applies to keypad
only. 0 = 200
ms typematic, 1 =
key down/key up
codes sent.
Matrix Orbital GLK12232-25-WBL 29

GLK12232-25-WB-E

Mfr. #:
Manufacturer:
Matrix Orbital
Description:
LCD Graphic Display Modules & Accessories Graphic Display White/Blue Ext Temp
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet