Matrix Orbital GLK12232-25-SM Legacy User Manual
Page 16
16
The coordinate origin (0,0) is at the top left corner of the display. X values go from 0 to 121 (increasing
towards the right) and Y values go from 0 to 31 (increasing towards the bottom).
4.2.1 Set drawing color (254 99 [color])
This command sets the drawing color for subsequent graphic commands that do not have the drawing color
passed as a parameter. The parameter [color] is the value of the color where white 0 Hex, and black is 255
Hex. Note: All non-zero values will display as black.
4.2.2 Draw line (254 108 [x
1
][y
1
][x
2
][y
2
])
This command will draw a line from (x
1
,y
1
) to (x
2
,y
2
) using the current drawing color. Lines may be drawn
from any part of the display to any other part, but may be important to note that the line may interpolate
differently right to left, or left to right. This means that a line drawn in white from right to left may not fully
erase the same line drawn in black from left to right.
4.2.3 Continue line (254 101 [x][y])
This command will draw line with the current drawing color from the last line end (x
2
,y
2
) to (x,y). This
command uses the global drawing color so the Set Drawing Color command should be used before the first
line segment if required.
4.2.4 Put pixel (254 112 [x][y])
This command will draw a pixel at (x,y) using the current drawing color. The unit processes these requests
fast enough to keep up with a steady stream at 115 kbaud, so flow control is not required.
4.2.5 Draw outline rectangle (254 114 [color][x
1
][y
1
][x
2
][y
2
])
This command draws a rectangular box in the specified color (0 = white, non-zero = black). The top left
corner is specified by (x
1
,y
1
) and the bottom right corner by (x
2
,y
2
).
4.2.6 Draw solid rectangle (254 120 [color][x1][y1][x2][y2])
This command draws a solid rectangle in the specified color (0 = white, non-zero = black). The top left
corner is specified by (x
1
,y
1
) and the bottom right corner by (x
2
,y
2
). Since this command involves
considerable processing overhead, we strongly recommend the use of flow control, particularly if the
command is to be repeated frequently (see section 4.3).
This procedure is common for monitoring applications where there is a “field” on the display that is
constantly being updated from, say, a temperature sensor.
4.2.7 Initialize bar graph (254 103 [ref][type][x
1
][y
1
][x
2
][y
2
])
This command initializes a bar graph referred to by number [reference number] of type [type] with size
from (x
1
,y
1
) (top left) to (x
2
,y
2
) (bottom right). A maximum of 16 bar graphs with reference numbers from 0
to 15 can be initialized as:
[type = 0]
Vertical, bottom referenced
[type = 1]
Horizontal left referenced
[type = 2]
Vertical top referenced
[type = 3]
Horizontal right referenced