|
@@ -65,6 +65,10 @@ static void lcd_set_contrast();
|
65
|
65
|
static void lcd_control_retract_menu();
|
66
|
66
|
static void lcd_sdcard_menu();
|
67
|
67
|
|
|
68
|
+#ifdef DELTA_CALIBRATION_MENU
|
|
69
|
+static void lcd_delta_calibrate_menu();
|
|
70
|
+#endif // DELTA_CALIBRATION_MENU
|
|
71
|
+
|
68
|
72
|
static void lcd_quick_feedback();//Cause an LCD refresh, and give the user visual or audible feedback that something has happened
|
69
|
73
|
|
70
|
74
|
/* Different types of actions that can be used in menu items. */
|
|
@@ -334,6 +338,9 @@ static void lcd_main_menu()
|
334
|
338
|
MENU_ITEM(submenu, MSG_TUNE, lcd_tune_menu);
|
335
|
339
|
}else{
|
336
|
340
|
MENU_ITEM(submenu, MSG_PREPARE, lcd_prepare_menu);
|
|
341
|
+#ifdef DELTA_CALIBRATION_MENU
|
|
342
|
+ MENU_ITEM(submenu, MSG_DELTA_CALIBRATE, lcd_delta_calibrate_menu);
|
|
343
|
+#endif // DELTA_CALIBRATION_MENU
|
337
|
344
|
}
|
338
|
345
|
MENU_ITEM(submenu, MSG_CONTROL, lcd_control_menu);
|
339
|
346
|
#ifdef SDSUPPORT
|
|
@@ -628,6 +635,20 @@ static void lcd_prepare_menu()
|
628
|
635
|
END_MENU();
|
629
|
636
|
}
|
630
|
637
|
|
|
638
|
+#ifdef DELTA_CALIBRATION_MENU
|
|
639
|
+static void lcd_delta_calibrate_menu()
|
|
640
|
+{
|
|
641
|
+ START_MENU();
|
|
642
|
+ MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
|
|
643
|
+ MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
|
|
644
|
+ MENU_ITEM(gcode, MSG_DELTA_CALIBRATE_X, PSTR("G0 F8000 X-77.94 Y-45 Z0"));
|
|
645
|
+ MENU_ITEM(gcode, MSG_DELTA_CALIBRATE_Y, PSTR("G0 F8000 X77.94 Y-45 Z0"));
|
|
646
|
+ MENU_ITEM(gcode, MSG_DELTA_CALIBRATE_Z, PSTR("G0 F8000 X0 Y90 Z0"));
|
|
647
|
+ MENU_ITEM(gcode, MSG_DELTA_CALIBRATE_CENTER, PSTR("G0 F8000 X0 Y0 Z0"));
|
|
648
|
+ END_MENU();
|
|
649
|
+}
|
|
650
|
+#endif // DELTA_CALIBRATION_MENU
|
|
651
|
+
|
631
|
652
|
float move_menu_scale;
|
632
|
653
|
static void lcd_move_menu_axis();
|
633
|
654
|
|