User Command (Script) Menu
The menu (commands / scripts) is configurable in `Configuration_adv.h`. - Added conditionals. - Changed script handling. - Slimmed and working! - Added Status message. - Returning to lcd status screen now! - Example Configs Updated. - Cleanups by @thinkyhead
This commit is contained in:
		| @@ -1240,4 +1240,27 @@ | ||||
|  */ | ||||
| #define FASTER_GCODE_PARSER | ||||
|  | ||||
| /** | ||||
|  * User-defined menu items that execute custom GCode | ||||
|  */ | ||||
| //#define CUSTOM_USER_MENUS | ||||
| #if ENABLED(CUSTOM_USER_MENUS) | ||||
|   #define USER_SCRIPT_DONE "M117 User Script Done" | ||||
|  | ||||
|   #define USER_DESC_1 "Home & UBL Info" | ||||
|   #define USER_GCODE_1 "G28\nG29 W" | ||||
|  | ||||
|   #define USER_DESC_2 "Preheat for PLA" | ||||
|   #define USER_GCODE_2 "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND) | ||||
|  | ||||
|   #define USER_DESC_3 "Preheat for ABS" | ||||
|   #define USER_GCODE_3 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND) | ||||
|  | ||||
|   #define USER_DESC_4 "Heat Bed/Home/Level" | ||||
|   #define USER_GCODE_4 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nG28\nG29" | ||||
|  | ||||
|   //#define USER_DESC_5 "Home & Info" | ||||
|   //#define USER_GCODE_5 "G28\nM503" | ||||
| #endif | ||||
|  | ||||
| #endif // CONFIGURATION_ADV_H | ||||
|   | ||||
		Reference in New Issue
	
	Block a user