How to use the custom font
In this tutorial, we will show you how to use the custom font on the Y Series module. CU-Y Series module will retain the information in the RAM until initialized command, reset command is sent or when the power is off.
- Part 1 – Convert the design into data
- Part 2 – Store the custom font
- Part 3 – Enable / disable the custom fonts
Noritake presents “Easy to use” Modules.
This tutorial is based on “Initial setting”, “RAM user font Define” and “RAM user font” in the specification.
Part 1 – Convert the design into data
In this tutorial, we will show you how to convert custom font into data for the Y Series module. You will first need to create a 5×8 matrix design then convert the design into hexadecimal data using the conversion table.
Step 1 – Create a 5×8 design
Design a custom font in 5×8 matrix. In this tutorial we will be converting the following design.
Fig. 1 Sample 5×8 custom font
Step 2 – Convert the design into data
Convert the design using the conversion table below.
Fig. 2 Conversion table with sample conversion
You should get the following values with the design used in this example:
Byte 1: BFh
Byte 2: D6h
Byte 3: 5Ah
Byte 4: 6Bh
Byte 5: FDh
Part 2 – Store the custom font
In this tutorial, we will show you how to store the custom font into Y Series modules random-access memory (RAM). Y Series can store up to 16 custom fonts between character codes 20h and FFh.
Step 1 – Store your design into RAM
In this step, we will be using the design created and converted from “How to convert custom font”:
Fig. 1 Conversion table with sample conversion
Converted data:
Byte 1: BFh
Byte 2: D6h
Byte 3: 5Ah
Byte 4: 6Bh
Byte 5: FDh
Send the following codes to store the design above into character code 21h:
1Bh 26h 01h 21h 21h 05h BFh D6h 5Ah 6Bh FDh
Codes breakdown
Line #1
1
2
3
4
- Stores the custom font into the Y Series module’s RAM.
- Sets the start and end character code locations.
- When storing a custom font, the start and end value is the same.
- Fixed, sets the width of the custom character
- The converted data in order of Byte 1 to Byte 5
Part 3 – Enable / disable the custom fonts
In this tutorial, we will show you how to enable/disable custom fonts stored in the RAM of the Y Series module. The custom fonts are disabled by default; therefore the custom fonts need to be enabled first. To display default font, please disable the custom fonts.
Step 1 – Enable the custom fonts
Send the following command to enable the custom fonts:
1Bh 25h 01h
Step 2 – Disable the custom fonts
Send the following command to disable the custom fonts:
1Bh 25h 00h