3 special characters – Matrix Orbital LK204-7T-1U User Manual

Page 21

Advertising
background image

21

6.3 Special Characters

3.1 Create a Custom
Character

Dec
Hex
ASCII

254 78

FE 4E

■ N

ID Data
ID Data
ID Data

v5.0

Creates a custom character. Each character is divided into 8 rows of 5 pixels; each data byte represents one row.
Each byte is padded by three zero bits followed by five bits representing each pixel state. A one represents an on
condition while a zero is off. Characters are lost when a new memory bank is loaded, unless they are saved.

ID

Byte

Character ID, value between 0 and 7.

Data

Byte[8]

Character pixel data as shown below.

Table 12: Custom Degree Character

Data[1]

000 p1 p2 p3 p4 p5 0000

1

000

8

Data[2]

000 p1 p2 p3 p4 p5 000

1

0

1

00

20

Data[3]

000 p1 p2 p3 p4 p5 0000

1

000

8

Data[4]

000 p1 p2 p3 p4 p5 000000

11

3

Data[5]

000 p1 p2 p3 p4 p5 00000

1

00

4

Data[6]

000 p1 p2 p3 p4 p5 00000

1

00

4

Data[7]

000 p1 p2 p3 p4 p5 000000

11

3

Data[8]

000 p1 p2 p3 p4 p5 00000000

0

3.2 Save Custom
Characters

Dec
Hex
ASCII

254 193

FE C1

■ ñ

Bank ID Data
Bank ID Data
Bank ID Data

v5.0

Provides access to all memory banks to create and save custom characters, graph bars, and large digits. Any new
characters saved will overwrite the old, so care should be taken when writing to any bar or digit memory bank.
Bank structure is shown below.

Bank

Byte

1 byte, memory bank ID, value between 0 and 4, as below.

ID

Byte

1 byte, value between 0 and 7.

Data

Byte[8]

8 bytes, character pixel data as above.

Table 13: Custom Character Banks

0

Start-up Characters

1

Horizontal Bars

2

Vertical Bars

3

Medium Digits

4

Large Digits


3.3 Load Custom
Characters

Dec
Hex
ASCII

254 192

FE C0

■ └

Bank
Bank
Bank

v5.0

Loads a bank of custom characters into memory for use. Must be issued before using a bank of characters.
Alternatively, an appropriate initialize command can be used.

Bank

Byte

Memory bank ID, value between 0 and 4, as above.


Advertising