menu: Replace menu with new Jinja2 template system (#2344)

menu.cfg:
- jinja2 template scripting
- new Setup menu
- new Calibration menu
menu:
- redesigned menu code
- jinja2 support
- option to reverse menu up and down directions
- functionality set to support menu injection from other modules
- a new way of defining menu hierarchy
- other adjustments

Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
Janar Sööt
2020-08-09 16:29:55 +03:00
committed by GitHub
parent efebbb9a2f
commit d991b4c83b
5 changed files with 1231 additions and 1592 deletions

View File

@@ -1895,6 +1895,9 @@
# Timeout for menu. Being inactive this amount of seconds will trigger
# menu exit or return to root menu when having autorun enabled.
# The default is 0 seconds (disabled)
#menu_reverse_navigation:
# When enabled it will reverse up and down directions for list navigation.
# The default is False. This parameter is optional.
#encoder_pins:
# The pins connected to encoder. 2 pins must be provided when
# using encoder. This parameter must be provided when using menu.