beautypg.com

2 using mogd.exe, 3 commands – Matrix Orbital GLK12232-25-SM Legacy User Manual

Page 25

background image

Of course, the average module will simply have files loaded into it and it will then get to work, without

ever having to perform this file reorganization task. The file space may be rewritten up to 100 000 times, but

most users will simply load in their fonts and bitmaps once and that will be it.

7.2 Using mogd.exe

The Matrix Orbital interface program "mogd.exe", which is provided on the eCD generates and saves

fonts larger than 14 pixels in height. It is also used to save graphic images (bitmaps) to the display.

To make use of smaller fonts, a pre-generated font is recommended. These fonts will be located on the

eCd provided to you. Unfortunately, integrating these fonts is not as straight forward as generating the fonts.

To make use of these fonts, place the font files in the font directory as defined in the interface program. The

directory can be found and defined under "settings".

A font file consists of a single file with an extension .mgf and a directory which contains bitmaps for

every character. All .mgf files are contained within the font directory and all bitmap directories are sub

directories of the font directory. After download of a font file use a "Zip" program to "UnZip" the .mgf file

and bitmap sub-directory into the font directory. Start or restart mogd.exe and click on the font tab. The font

list of mogd should now display the new pre-generated font list.

7.3 Commands

In addition to the commands listed below, the mogd.exe program saves fonts and bitmaps to the display’s

flash memory.

7.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.
The 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.

7.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.

Matrix Orbital

GLK12232-25-SM

21