working with Pro/ProXT toolhead change
Currently a work in progress. manually added in discriptions and actions
This commit is contained in:
parent
9ce7468d91
commit
6f7a17b111
@ -3801,7 +3801,6 @@
|
||||
*/
|
||||
|
||||
// Custom Menu: Main Menu
|
||||
//#if DISABLED(TAZPro, TAZProXT)
|
||||
#if defined(LULZBOT_UNIVERSAL_TOOLHEAD)
|
||||
|
||||
#define CUSTOM_MENU_MAIN
|
||||
@ -3839,7 +3838,7 @@
|
||||
#endif
|
||||
#if DISABLED(TAZ6, Workhorse)
|
||||
#define MAIN_MENU_ITEM_3_DESC "M175v2|0.50mm|CRB CU"
|
||||
#define MAIN_MENU_ITEM_3_GCODE "M92E415\nM301P24.54I2.52D61.75\nM906E" E_CURRENT_BMG "\nM500\nM117 M175|0.50mm|CRB CU"
|
||||
#define MAIN_MENU_ITEM_3_GCODE "M92E415\nM301P24.54I2.52D61.75\nM906E" E_CURRENT_BMG "\nM500\nM117 M175v2|0.50mm|CRB CU"
|
||||
|
||||
#define MAIN_MENU_ITEM_4_DESC "SL|0.25mm|NKL-PL CU"
|
||||
#define MAIN_MENU_ITEM_4_GCODE "M92E420\nM301" DEFAULT_PID "\nM906E" E_CURRENT_Aero "\nM500\nM117 SL|0.25mm|NKL-PL CU"
|
||||
@ -3857,10 +3856,10 @@
|
||||
#define MAIN_MENU_ITEM_8_GCODE "M92E420\nM301" DEFAULT_PID "\nM906E" E_CURRENT_Aero "\nM500\nM117 HS+|1.20mm|HRD STEEL"
|
||||
|
||||
#define MAIN_MENU_ITEM_9_DESC "H175|0.50mm|NKL-PL CU"
|
||||
#define MAIN_MENU_ITEM_9_GCODE "M92E409\nM301" DEFAULT_PID "\nM906E" E_CURRENT_Aero "\nM500\nM117 HM|0.50mm|NKL-PL CU"
|
||||
#define MAIN_MENU_ITEM_9_GCODE "M92E409\nM301" DEFAULT_PID "\nM906E" E_CURRENT_Aero "\nM500\nM117 H175|0.50mm|NKL-PL CU"
|
||||
#else
|
||||
#define MAIN_MENU_ITEM_3_DESC "M175|0.50mm|CRB CU"
|
||||
#define MAIN_MENU_ITEM_3_GCODE "M92E415\nM301P24.54I2.52D61.75\nM907E" E_CURRENT_BMG "\nM500\nM117 M175|0.50mm|CRB CU"
|
||||
#define MAIN_MENU_ITEM_3_DESC "M175v2|0.50mm|CRB CU"
|
||||
#define MAIN_MENU_ITEM_3_GCODE "M92E415\nM301P24.54I2.52D61.75\nM907E" E_CURRENT_BMG "\nM500\nM117 M175v2|0.50mm|CRB CU"
|
||||
|
||||
#define MAIN_MENU_ITEM_4_DESC "SL|0.25mm|NKL-PL CU"
|
||||
#define MAIN_MENU_ITEM_4_GCODE "M92E420\nM301" DEFAULT_PID "\nM907E" E_CURRENT_Aero "\nM500\nM117 SL|0.25mm|NKL-PL CU"
|
||||
@ -3878,7 +3877,7 @@
|
||||
#define MAIN_MENU_ITEM_8_GCODE "M92E420\nM301" DEFAULT_PID "\nM907E" E_CURRENT_Aero "\nM500\nM117 HS+|1.20mm|HRD STEEL"
|
||||
|
||||
#define MAIN_MENU_ITEM_9_DESC "H175|0.50mm|NKL-PL CU"
|
||||
#define MAIN_MENU_ITEM_9_GCODE "M92E409\nM301" DEFAULT_PID "\nM906E" E_CURRENT_Aero "\nM500\nM117 HM|0.50mm|NKL-PL CU"
|
||||
#define MAIN_MENU_ITEM_9_GCODE "M92E409\nM301" DEFAULT_PID "\nM906E" E_CURRENT_Aero "\nM500\nM117 H175|0.50mm|NKL-PL CU"
|
||||
#endif
|
||||
|
||||
#if defined(TAZ6)
|
||||
@ -3888,10 +3887,9 @@
|
||||
|
||||
#endif
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
// Custom Menu: Configuration Menu
|
||||
//#define CUSTOM_MENU_CONFIG
|
||||
#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"
|
||||
|
@ -60,9 +60,9 @@ void CustomUserMenus::onRedraw(draw_mode_t what) {
|
||||
#define BACK_POS BTN_POS(1,11), BTN_SIZE(1,1)
|
||||
#else
|
||||
// #if _MORE_THAN_TEN || HAS_USER_ITEM(6, 7, 8, 9, 10)
|
||||
// #define _MORE_THAN_FIVE 1
|
||||
#define _MORE_THAN_FIVE 1
|
||||
// #else
|
||||
#define _MORE_THAN_FIVE 0
|
||||
// #define _MORE_THAN_FIVE 0
|
||||
//#endif
|
||||
#define GRID_ROWS 6
|
||||
#define GRID_COLS (1 + _MORE_THAN_FIVE + _MORE_THAN_TEN + _MORE_THAN_FIFTEEN)
|
||||
@ -74,26 +74,33 @@ void CustomUserMenus::onRedraw(draw_mode_t what) {
|
||||
CommandProcessor cmd;
|
||||
cmd.colors(normal_btn)
|
||||
.font(Theme::font_medium)
|
||||
#if HAS_USER_ITEM(1)
|
||||
_USER_ITEM(1)
|
||||
#if defined(MAIN_MENU_ITEM_3_DESC)
|
||||
//_USER_ITEM(1)
|
||||
.tag(_ITEM_TAG(11)).button(USER_ITEM_POS(1), MAIN_MENU_ITEM_3_DESC)
|
||||
#endif
|
||||
#if HAS_USER_ITEM(2)
|
||||
_USER_ITEM(2)
|
||||
#if defined(MAIN_MENU_ITEM_4_DESC)
|
||||
//_USER_ITEM(2)
|
||||
.tag(_ITEM_TAG(12)).button(USER_ITEM_POS(2), MAIN_MENU_ITEM_4_DESC)
|
||||
#endif
|
||||
#if HAS_USER_ITEM(3)
|
||||
_USER_ITEM(3)
|
||||
#if defined(MAIN_MENU_ITEM_5_DESC)
|
||||
//_USER_ITEM(3)
|
||||
.tag(_ITEM_TAG(13)).button(USER_ITEM_POS(3), MAIN_MENU_ITEM_5_DESC)
|
||||
#endif
|
||||
#if HAS_USER_ITEM(4)
|
||||
_USER_ITEM(4)
|
||||
#if defined(MAIN_MENU_ITEM_6_DESC)
|
||||
//_USER_ITEM(4)
|
||||
.tag(_ITEM_TAG(14)).button(USER_ITEM_POS(4), MAIN_MENU_ITEM_6_DESC)
|
||||
#endif
|
||||
#if HAS_USER_ITEM(5)
|
||||
_USER_ITEM(5)
|
||||
#if defined(MAIN_MENU_ITEM_7_DESC)
|
||||
//_USER_ITEM(5)
|
||||
.tag(_ITEM_TAG(15)).button(USER_ITEM_POS(5), MAIN_MENU_ITEM_7_DESC)
|
||||
#endif
|
||||
#if HAS_USER_ITEM(6)
|
||||
_USER_ITEM(6)
|
||||
#if defined(MAIN_MENU_ITEM_8_DESC)
|
||||
//_USER_ITEM(6)
|
||||
.tag(_ITEM_TAG(16)).button(USER_ITEM_POS(6), MAIN_MENU_ITEM_8_DESC)
|
||||
#endif
|
||||
#if HAS_USER_ITEM(7)
|
||||
_USER_ITEM(7)
|
||||
#if defined(MAIN_MENU_ITEM_9_DESC)
|
||||
//_USER_ITEM(7)
|
||||
.tag(_ITEM_TAG(17)).button(USER_ITEM_POS(7), MAIN_MENU_ITEM_9_DESC)
|
||||
#endif
|
||||
#if HAS_USER_ITEM(8)
|
||||
_USER_ITEM(8)
|
||||
@ -141,26 +148,33 @@ void CustomUserMenus::onRedraw(draw_mode_t what) {
|
||||
|
||||
bool CustomUserMenus::onTouchEnd(uint8_t tag) {
|
||||
switch (tag) {
|
||||
#if HAS_USER_ITEM(1)
|
||||
_USER_ACTION(1)
|
||||
#if defined(MAIN_MENU_ITEM_3_DESC)
|
||||
//_USER_ACTION(1)
|
||||
case _ITEM_TAG(11): injectCommands_P(PSTR(MAIN_MENU_ITEM_3_GCODE)); TERN_(USER_SCRIPT_RETURN, GOTO_SCREEN(StatusScreen)); break;
|
||||
#endif
|
||||
#if HAS_USER_ITEM(2)
|
||||
_USER_ACTION(2)
|
||||
#if defined(MAIN_MENU_ITEM_4_DESC)
|
||||
//_USER_ACTION(2)
|
||||
case _ITEM_TAG(12): injectCommands_P(PSTR(MAIN_MENU_ITEM_4_GCODE)); TERN_(USER_SCRIPT_RETURN, GOTO_SCREEN(StatusScreen)); break;
|
||||
#endif
|
||||
#if HAS_USER_ITEM(3)
|
||||
_USER_ACTION(3)
|
||||
#if defined(MAIN_MENU_ITEM_5_DESC)
|
||||
//_USER_ACTION(3)
|
||||
case _ITEM_TAG(13): injectCommands_P(PSTR(MAIN_MENU_ITEM_5_GCODE)); TERN_(USER_SCRIPT_RETURN, GOTO_SCREEN(StatusScreen)); break;
|
||||
#endif
|
||||
#if HAS_USER_ITEM(4)
|
||||
_USER_ACTION(4)
|
||||
#if defined(MAIN_MENU_ITEM_6_DESC)
|
||||
//_USER_ACTION(4)
|
||||
case _ITEM_TAG(14): injectCommands_P(PSTR(MAIN_MENU_ITEM_6_GCODE)); TERN_(USER_SCRIPT_RETURN, GOTO_SCREEN(StatusScreen)); break;
|
||||
#endif
|
||||
#if HAS_USER_ITEM(5)
|
||||
_USER_ACTION(5)
|
||||
#if defined(MAIN_MENU_ITEM_7_DESC)
|
||||
//_USER_ACTION(5)
|
||||
case _ITEM_TAG(15): injectCommands_P(PSTR(MAIN_MENU_ITEM_7_GCODE)); TERN_(USER_SCRIPT_RETURN, GOTO_SCREEN(StatusScreen)); break;
|
||||
#endif
|
||||
#if HAS_USER_ITEM(6)
|
||||
_USER_ACTION(6)
|
||||
#if defined(MAIN_MENU_ITEM_8_DESC)
|
||||
//_USER_ACTION(6)
|
||||
case _ITEM_TAG(16): injectCommands_P(PSTR(MAIN_MENU_ITEM_8_GCODE)); TERN_(USER_SCRIPT_RETURN, GOTO_SCREEN(StatusScreen)); break;
|
||||
#endif
|
||||
#if HAS_USER_ITEM(7)
|
||||
_USER_ACTION(7)
|
||||
#if defined(MAIN_MENU_ITEM_9_DESC)
|
||||
//_USER_ACTION(7)
|
||||
case _ITEM_TAG(17): injectCommands_P(PSTR(MAIN_MENU_ITEM_9_GCODE)); TERN_(USER_SCRIPT_RETURN, GOTO_SCREEN(StatusScreen)); break;
|
||||
#endif
|
||||
#if HAS_USER_ITEM(8)
|
||||
_USER_ACTION(8)
|
||||
|
@ -84,12 +84,14 @@ void LevelingMenu::onRedraw(draw_mode_t what) {
|
||||
.enabled(EITHER(Z_STEPPER_AUTO_ALIGN,MECHANICAL_GANTRY_CALIBRATION))
|
||||
.tag(2).button(LEVEL_AXIS_POS, GET_TEXT_F(MSG_LEVEL_X_AXIS))
|
||||
.tag(3).button(PROBE_BED_POS, GET_TEXT_F(MSG_PROBE_BED))
|
||||
#if DISABLED (AUTO_BED_LEVELING_BILINEAR)
|
||||
.enabled(ENABLED(HAS_MESH))
|
||||
.tag(4).button(SHOW_MESH_POS, GET_TEXT_F(MSG_SHOW_MESH))
|
||||
.enabled(ENABLED(HAS_MESH))
|
||||
.tag(5).button(EDIT_MESH_POS, GET_TEXT_F(MSG_EDIT_MESH))
|
||||
.enabled(ENABLED(G26_MESH_VALIDATION))
|
||||
.tag(6).button(TEST_MESH_POS, GET_TEXT_F(MSG_PRINT_TEST))
|
||||
#endif
|
||||
#if ENABLED(BLTOUCH)
|
||||
.tag(7).button(BLTOUCH_RESET_POS, GET_TEXT_F(MSG_BLTOUCH_RESET))
|
||||
.tag(8).button(BLTOUCH_TEST_POS, GET_TEXT_F(MSG_BLTOUCH_SELFTEST))
|
||||
|
@ -152,7 +152,7 @@ namespace Language_en {
|
||||
PROGMEM Language_Str MSG_MESH_X = _UxGT("Index X");
|
||||
PROGMEM Language_Str MSG_MESH_Y = _UxGT("Index Y");
|
||||
PROGMEM Language_Str MSG_MESH_EDIT_Z = _UxGT("Z Value");
|
||||
PROGMEM Language_Str MSG_CUSTOM_COMMANDS = _UxGT("Custom Commands");
|
||||
PROGMEM Language_Str MSG_CUSTOM_COMMANDS = _UxGT("Tool Heads");
|
||||
PROGMEM Language_Str MSG_M48_TEST = _UxGT("M48 Probe Test");
|
||||
PROGMEM Language_Str MSG_M48_POINT = _UxGT("M48 Point");
|
||||
PROGMEM Language_Str MSG_M48_OUT_OF_BOUNDS = _UxGT("Probe out of bounds");
|
||||
|
Loading…
Reference in New Issue
Block a user