display: Move glyph definition to printer config

This commit allows to modify the icons (or glyphs) in the displays that
support it. Existing icons can be modified and new icons can be added via
a [display_glyph] section in the config.

Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
This commit is contained in:
Florian Heilmann
2020-06-07 16:25:19 +00:00
committed by KevinOConnor
parent 722770f62f
commit 3dcac1308e
7 changed files with 196 additions and 173 deletions

View File

@@ -1903,6 +1903,17 @@
# template. This field is evaluated using command templates (see
# docs/Command_Templates.md). This parameter must be provided.
# Display a custom glyph on displays that support it. The given name
# will be assigned the given display data which can then be referenced
# in the display templates by their name surrounded by two "tilde" symbols
# i.e. ~my_display_glyph~
#[display_glyph my_display_glyph]
#data:
# The display data, stored as 16 lines consisting of 16 bits (1 per pixel)
# e.g. 1111111111111111 to display a solid horizontal line. Put each display
# line into a separate config line. The glyph must consist of exactly 16
# lines with 16 bits each.
# If a primary [display] section has been defined in printer.cfg as shown
# above it is possible to define multiple auxilary displays. Note that
# auxilary displays do not currently support menu functionality, thus they