Skip to main content

Site Navigation

Your Account

Choose Language

Help

Revision to Duet 2 Maestro 12864 display menu system

David Crocker

The Duet 2 Maestro supports a dynamically-configured menu system to use on a 12864 display + encoder.
 
Duet electronics is capable of being used in many different configurations, and OEMs have differing requirements. So a fixed menu system is not suitable. Therefore the menu structure isdefinedis defined in SD card files. Folder /menu is used for this purpose.
Duet electronics is capable of being used in many different configurations, and OEMs have differing requirements. So a fixed menu system is not suitable. Therefore the menu structure isdefinedis defined in SD card files. Folder /menu is used for this purpose.
 
Each== Menu files ==

Folder '''/menu''' of the micro SD card installed in the Duet Maestro is usedto hold menu files. Each
file in /menu'''/menu''' defines one page on the display. There must be a file called “main” in /menus'''main '''in '''/menu''', which is the initial file loaded at startup
Each== Menu files ==

Folder '''/menu''' of the micro SD card installed in the Duet Maestro is usedto hold menu files. Each
file in /menu'''/menu''' defines one page on the display. There must be a file called “main” in /menus'''main '''in '''/menu''', which is the initial file loaded at startup
 
Generally, each line in a menu file describes one display element.
Each element has the following syntax:
 
command''command parameter1 parameter2 parameter3 ...''
command''command parameter1 parameter2 parameter3 ...''
 
The command must be one of the recognised keywords. Most commands cause a display element to be written to the display. Each parameter is similar to a parameter in G- or M-code, i.e. a letter followed by a number or a string, or a colon-separated sequence of numbers. String parameters must always be enclosed in double-quote characters. Parameters may be optional (depending on the command), in which case default values are assumed.
The command must be one of the recognised keywords. Most commands cause a display element to be written to the display. Each parameter is similar to a parameter in G- or M-code, i.e. a letter followed by a number or a string, or a colon-separated sequence of numbers. String parameters must always be enclosed in double-quote characters. Parameters may be optional (depending on the command), in which case default values are assumed.
 
Parameters common to several commands have the following meanings:
 
* R is the row number for the top of the display element, in pixels counting down from the top of the display, with R0 being the top row. The default is the same row as used for the previous element. The default at the start of the file is 0.
* C is the column number for the left hand edge of the display element, in pixels counting from the left, with C0 being the leftmost column. The default is justone pixel after the previous element ends. The default at the start of the file is 0. The specified RC coordinates give the position of the top left of the display element.
* R is the row number for the top of the display element, in pixels counting down from the top of the display, with R0 being the top row. The default is the same row as used for the previous element. The default at the start of the file is 0.
* C is the column number for the left hand edge of the display element, in pixels counting from the left, with C0 being the leftmost column. The default is justone pixel after the previous element ends. The default at the start of the file is 0. The specified RC coordinates give the position of the top left of the display element.
* G is the name of a command to execute, either a Gcode command or a menu command
* F is a font to select. There are currently two fonts, 0 (small, the default) and 1.

To undo the changes made by this version, click 'Revert Changes.' This will automatically restore the previous version of this guide.

Revert Changes