beautypg.com

Matrix Orbital GLK12232-25-WBL User Manual

Page 16

background image

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 [x1][y1][x2][y2])

This command will draw a line from (x1,y1) to (x2,y2) 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 (x2,y2) 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][x1][y1][x2][y2])

This command draws a rectangular box in the specified color (0 = white, non-zero = black). The top left

corner is specified by (x1,y1) and the bottom right corner by (x2,y2).

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 (x1,y1) and the bottom right corner by (x2,y2). Since this command involves consid-
erable processing overhead, we strongly recommend the use of flow control, particularly if the command
is to be repeated frequently.

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.

Matrix Orbital

GLK12232-25-WBL

12