Main / Config custom menus

MarlinFirmware/Marlin#18177
This commit is contained in:
Scott Lahteine 2021-03-23 06:59:20 -05:00
parent 0c5ef49586
commit dd4de33091
221 changed files with 14358 additions and 7286 deletions

View file

@ -3416,6 +3416,71 @@
#define GCODE_MACROS_SLOT_SIZE 50 // Maximum length of a single macro
#endif
/**
* User-defined menu items to run custom G-code.
* Up to 25 may be defined, but the actual number is LCD-dependent.
*/
// Custom Menu: Main Menu
#define CUSTOM_MENU_MAIN
#if ENABLED(CUSTOM_MENU_MAIN)
#define CUSTOM_MENU_MAIN_TITLE "Tools"
//#define CUSTOM_MENU_MAIN_SCRIPT_DONE "M117 User Script Done"
#define CUSTOM_MENU_MAIN_SCRIPT_AUDIBLE_FEEDBACK
#define CUSTOM_MENU_MAIN_SCRIPT_RETURN // Return to status screen after a script
#define CUSTOM_MENU_MAIN_ONLY_IDLE // Only show custom menu when the machine is idle
#define MAIN_MENU_ITEM_1_DESC "Manual UBL" // Use nozzle & paper to setup UBL
#define MAIN_MENU_ITEM_1_GCODE "G28\nG29 P4 R999\nG29 A\nG29 S\nM500"
//#define MAIN_MENU_ITEM_1_CONFIRM // Show a confirmation dialog before this action
#define MAIN_MENU_ITEM_2_DESC "Adjust Point Near" // Adjust nearest mesh point
#define MAIN_MENU_ITEM_2_GCODE "G29 P4\nM500"
//#define MAIN_MENU_ITEM_2_CONFIRM
#define MAIN_MENU_ITEM_3_DESC "PID Autotune End"
#define MAIN_MENU_ITEM_3_GCODE "M303 U1 E0 S200 C8\nM500"
//#define MAIN_MENU_ITEM_3_CONFIRM
#define MAIN_MENU_ITEM_4_DESC "PID Autotune Bed"
#define MAIN_MENU_ITEM_4_GCODE "M303 U1 E-1 S60 C8\nM500"
//#define MAIN_MENU_ITEM_4_CONFIRM
#define MAIN_MENU_ITEM_5_DESC "Park Toolhead"
#define MAIN_MENU_ITEM_5_GCODE "G27"
//#define MAIN_MENU_ITEM_5_CONFIRM
#endif
// Custom Menu: Configuration Menu
//#define CUSTOM_MENU_CONFIG
#if ENABLED(CUSTOM_MENU_CONFIG)
//#define CUSTOM_MENU_CONFIG_TITLE "Custom Commands"
#define CUSTOM_MENU_CONFIG_SCRIPT_DONE "M117 Wireless Script Done"
#define CUSTOM_MENU_CONFIG_SCRIPT_AUDIBLE_FEEDBACK
//#define CUSTOM_MENU_CONFIG_SCRIPT_RETURN // Return to status screen after a script
#define CUSTOM_MENU_CONFIG_ONLY_IDLE // Only show custom menu when the machine is idle
#define CONFIG_MENU_ITEM_1_DESC "Wifi ON"
#define CONFIG_MENU_ITEM_1_GCODE "M118 [ESP110] WIFI-STA pwd=12345678"
//#define CONFIG_MENU_ITEM_1_CONFIRM // Show a confirmation dialog before this action
#define CONFIG_MENU_ITEM_2_DESC "Bluetooth ON"
#define CONFIG_MENU_ITEM_2_GCODE "M118 [ESP110] BT pwd=12345678"
//#define CONFIG_MENU_ITEM_2_CONFIRM
//#define CONFIG_MENU_ITEM_3_DESC "Radio OFF"
//#define CONFIG_MENU_ITEM_3_GCODE "M118 [ESP110] OFF pwd=12345678"
//#define CONFIG_MENU_ITEM_3_CONFIRM
//#define CONFIG_MENU_ITEM_4_DESC "Wifi ????"
//#define CONFIG_MENU_ITEM_4_GCODE "M118 ????"
//#define CONFIG_MENU_ITEM_4_CONFIRM
//#define CONFIG_MENU_ITEM_5_DESC "Wifi ????"
//#define CONFIG_MENU_ITEM_5_GCODE "M118 ????"
//#define CONFIG_MENU_ITEM_5_CONFIRM
#endif
/**
* User-defined buttons to run custom G-code.
* Up to 25 may be defined.
@ -3447,40 +3512,6 @@
#endif
#endif
/**
* User-defined menu items to run custom G-code.
* Up to 25 may be defined, but the actual number is LCD-dependent.
*/
#define CUSTOM_USER_MENUS
#if ENABLED(CUSTOM_USER_MENUS)
#define CUSTOM_USER_MENU_TITLE "Tools"
//#define USER_SCRIPT_DONE "M117 User Script Done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
#define USER_SCRIPT_RETURN // Return to status screen after a script
#define CUSTOM_MENU_ONLY_IDLE // Only show custom menu when the machine is idle
#define USER_DESC_1 "Manual UBL" // Use nozzle & paper to setup UBL
#define USER_GCODE_1 "G28\nG29 P4 R999\nG29 A\nG29 S\nM500"
//#define USER_CONFIRM_1 // Show a confirmation dialog before this action
#define USER_DESC_2 "Adjust Point Near" // Adjust nearest mesh point
#define USER_GCODE_2 "G29 P4\nM500"
//#define USER_CONFIRM_2
#define USER_DESC_3 "PID Autotune End"
#define USER_GCODE_3 "M303 U1 E0 S200 C8\nM500"
//#define USER_CONFIRM_3
#define USER_DESC_4 "PID Autotune Bed"
#define USER_GCODE_4 "M303 U1 E-1 S60 C8\nM500"
//#define USER_CONFIRM_4
#define USER_DESC_5 "Park Toolhead"
#define USER_GCODE_5 "G27"
//#define USER_CONFIRM_5
#endif
/**
* Host Action Commands
*