Matrix Orbital PK202-24-USB User Manual

Page 23

Advertising
background image

4.1.4 Initialize Horizontal Bar Graph (254 104)

This command defines the 8 special / user characters to be blocks suitable for use in drawing horizontal

bar graphs. Any previously existing definitions will be lost. Once this command has been issued, any number

of horizontal bar graphs may be drawn unless the characters are redefined by another command.

4.1.5 Draw Horizontal Bar Graph (254 124 [column][row][dir][length])

Draws a horizontal bar graph in [row] starting at [column] with a length of [length] pixels. [row] may

have a value of 0x01 or 0x02, column may range from 0x01 to 0x14 and length may be from 0x00 to 0x64 (0

to 100) if the graph can extend to the full width of the screen. Each column is 5 pixels wide (spaces between

the columns don’t count).

[dir] specifies the direction: 0x00 goes from left to right, 0x01 goes from right to left.

4.1.6 Define Custom Character (254 78 [c][8 bytes])

The display allows up to 8 user defined (custom) characters. These characters occupy the first 8 (0x00

to 0x07) places in the character set.

Custom characters occupy a 5x8 pixel matrix. Built in characters are 5x8; the bottom row of pixels is

normally reserved for the underline cursor. The underline cursor should be turned off if the bottom row of

pixels forms part of a custom character.

The characters are defined by issuing the command 254 78 [c] followed by 8 bytes to define the character.

[c] is the character number (0x00 to 0x07). The 8 bytes are mapped as shown below;

Table 7: 8 Byte Map

MSB LSB

*

*

*

1

2

3

4

5

Data Byte 1

*

*

*

6

7

8

9

10

Data Byte 2

*

*

*

11

12

13

14

15

Data Byte 3

*

*

*

16

17

18

19

20

Data Byte 4

*

*

*

21

22

23

24

25

Data Byte 5

*

*

*

26

27

28

29

30

Data Byte 6

*

*

*

31

32

33

34

35

Data Byte 7

*

*

*

36

37

38

39

40

Data Byte 8

A “1” bit indicates an “on” (black) pixel, while a “0” indicates an “off” (clear) pixel.
Once defined, a character is displayed simply by issuing a value (0x00 to 0x07) corresponding to the

character number. The character will be laid out as follows;

Matrix Orbital

PK202-24-USB

19

Advertising