Matrix-orbital LCD2041 Instrukcja Użytkownika Strona 31

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 30
Description The LCD2041 allows for upta to eight custom defined characters to be
added onto the the character set. A custom character is a five by eight
pixel matrix with each row represented by a byte value. For example:
Custom Character ’h’ Decimal Hex
1 0 0 0 0 16 0x10
1 0 0 0 0 16 0x10
1 0 0 0 0 16 0x10
1 0 0 0 0 16 0x10
1 0 1 1 0 22 0x16
1 1 0 0 1 25 0x19
1 0 0 0 1 17 0x11
1 0 0 0 1 17 0x11
Each bit value of one, in the table, represents an on pixel, whereas a value
of zero represents a pixel that is turned off. Therefore in order to define
custom character ’h’ you would send the command byte prefix 254 fol-
lowed by the command 78. Next, you will have to select the memory
location in which you wish to save the character in. The available mem-
ory locations for this command are zero through to seven. After sending
the memory location, or [refID], you may then send the eight byte custom
character data in sequence from the top to the bottom.
Once you have defined a custom character you may display it by sending
the display module the [refID]. For example if a custom character was
saved in position one, the command to display the custom character, at
the current cursor position, would be simply to send the number one to
the display module without quotes.
Remembered No
6.3 Saving Custom Characters
Syntax
Hexadecimal 0xFE 0xC1 [Bank] [ID] [Data]
Decimal 254 193 [Bank] [ID] [Data]
Parameters
Parameter Length Description
Bank 1 Memory bank to save to (0-4).
ID 1 Character ID (0-7)
Data 8 Character Definition
Matrix Orbital LCD2041 27
Przeglądanie stron 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 54 55

Komentarze do niniejszej Instrukcji

Brak uwag