3 commands, 4 working with font files – Matrix Orbital GLK12232-25-WBL User Manual
Page 23
![background image](/manuals/414357/23/background.png)
list of mogd should now display the new pre-generated font list.
6.3
Commands
In addition to the commands listed below, the mogd.exe program saves fonts and bitmaps to the display’s
flash memory.
6.3.1
Erase file (254 173 [type] [ref])
This command erases a file within the display’s memory, in addition to erasing a single file at a time.
This command needs to be given two parameters: [type] and [ref]. The file type and reference number
are defined when the file is saved to the display using mogd.exe. Since there is no command to list files in
memory, the user must keep track of the memory contents.
• [type] = 1 is a font file
• [type] = 5 is a bitmap
Once this command is completed, all files ’move up’ and recover the empty space for efficient memory
management.
6.3.2
Purge memory (254 33 89 33)
This command completely erases the display’s non-volatile memory. This removes all fonts, font metrics,
bitmaps, and settings (current font, cursor position, communication speed, etc.). It is an ’odd’ command in
that it is three bytes in length. This is to prevent accidental execution.
6.3.3
Upload Font (254 36 [ref] [file size] [file data])
This command begins a font upload to the display’s non-volatile memory. [ref] is the reference number
to be used for this font. File size is a 2 byte value that must be calculated by the host before the transfer takes
place.
6.3.4
Upload Bitmap (254 94[ref] [file size] [file data])
This command begins a bitmap upload to the display’s non-volatile memory. [ref] is the reference
number to be used for this bitmap. File size is a 2 byte value that must be calculated by the host before
the transfer takes place.
6.4
Working with Font Files
A font file consists of a header, a character list and character bitmaps.
Matrix Orbital
GLK12232-25-WBL
19