fingerfunk99

menu.cfg

Jun 17th, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. ######################################################################
  2. # "RepRapDiscount 2004 Smart Controller" type displays
  3. ######################################################################
  4. [display]
  5. lcd_type: hd44780
  6. rs_pin: PD5
  7. e_pin: PD3
  8. d4_pin: PD2
  9. d5_pin: PG4
  10. d6_pin: PH7
  11. d7_pin: PG3
  12. #menu_root: filament
  13. #menu_timeout: 30
  14. encoder_pins: ^PJ1, ^PJ2
  15. click_pin: ^!PH6
  16. #kill_pin: ^!EXP2_8
  17.  
  18. # Available options in menu Jinja2 template context:
  19. # Read-only attributes for menu element:
  20. # menu.width - element width (number of display columns)
  21. # menu.ns - element namespace
  22. # menu.event - name of the event that triggered the script
  23. # menu.input - input value, only available in input script context
  24. # List of actions for menu element:
  25. # menu.back(force, update) - will execute menu back command, optional boolean parameters <force> and <update>.
  26. # When <force> is set True then it will also stop editing. Default value is False
  27. # When <update> is set False then parent container items are not updated. Default value is True
  28. # menu.exit(force) - will execute menu exit command, optional boolean parameter <force> default value False
  29. # When <force> is set True then it will also stop editing. Default value is False
  30.  
  31. # Common parameters available for all menu config sections.
  32. #[menu some_name]
  33. #type:
  34. # One of command, input, list, text:
  35. # command - basic menu element with various script triggers
  36. # input - same like 'command' but has value changing capabilities.
  37. # Press will start/stop edit mode.
  38. # list - it allows for menu items to be grouped together in a scrollable list.
  39. # Add to the list by creating menu configurations
  40. # using "some_list" as a prefix - for example: [menu some_list some_item_in_the_list]
  41. # vsdlist - same as 'list' but will append files from virtual sdcard (will be removed in the future)
  42. #name:
  43. # Name of menu item - evaluated as a template.
  44. #enable:
  45. # Template that evaluates to True or False.
  46. #index:
  47. # Position where an item needs to be inserted in list
  48. # By default the item is added at the end. This parameter is optional.
  49. #[menu __filament __load]
  50. #type: command
  51. #name: Load Filament
  52. #gcode:
  53. # LOAD_FILAMENT
  54. #
  55. #[menu __filament __unload]
  56. #type: command
  57. #name: Unload Filament
  58. #gcode:
  59. # UNLOAD_FILAMENT
  60. #
  61. #[menu __filament __feed]
  62. #type: input
  63. #name: Feed Filament: {0:.1f}
  64. #parameter: 0
  65. #input_step: 1
  66. #gcode:
  67. # M83
  68. # G1 E{0:.1f} F400
  69. #
  70. #[menu __filament __change]
  71. #type: command
  72. #name: Change Filament
  73. #gcode:
  74. # M600
  75. #
  76. #[menu __filament __resume]
  77. #type: command
  78. #name: Resume
  79. #gcode:
  80. # RESUME
  81. #[menu some_list]
  82. #type: list
  83. #name:
  84. #enable:
  85.  
  86. #[menu some_list some_command]
  87. #type: command
  88. #name:
  89. #enable:
  90. #gcode:
  91. # Script to run on button click or long click. Evaluated as a template.
  92.  
  93. #[menu some_list some_input]
  94. #type: input
  95. #name:
  96. #enable:
  97. #input:
  98. # Initial value to use when editing - evaluated as a template.
  99. # Result must be float.
  100. #input_min:
  101. # Minimum value of range - evaluated as a template.
  102. # Default -99999.
  103. #input_max:
  104. # Maximum value of range - evaluated as a template.
  105. # Default 99999.
  106. #input_step:
  107. # Editing step - Must be a positive integer or float value.
  108. # It has internal fast rate step. When (input_max - input_min) / input_step > 100
  109. # then fast rate step is 10 * input_step else fast rate step is same input_step
  110. #realtime:
  111. # This attribute accepts static boolean value.
  112. # When enabled then gcode script is run after each value change.
  113. # The default is False. This parameter is optional.
  114. #gcode:
  115. # Script to run on button click, long click or value change. Evaluated as a template.
  116. # The button click will trigger the edit mode start or end.
Advertisement
Add Comment
Please, Sign In to add comment