Add precise Z axis movement
To help with manual mesh bed leveling, I added four Z-axis controls to the special menu.
This commit is contained in:
parent
a57fb2f38b
commit
0fb578c915
|
@ -222,6 +222,18 @@ void AnycubicTFTClass::HandleSpecialMenu()
|
|||
} else if (strcmp(SelectedDirectory, "<next mesh point>")==0) {
|
||||
SERIAL_PROTOCOLLNPGM("Special Menu: Next Mesh Point");
|
||||
enqueue_and_echo_commands_P(PSTR("G29 S2"));
|
||||
} else if (strcmp(SelectedDirectory, "<z up 0.1>")==0) {
|
||||
SERIAL_PROTOCOLLNPGM("Special Menu: Z Up 0.1");
|
||||
enqueue_and_echo_commands_P(PSTR("G91\nG1 Z+0.1\nG90"));
|
||||
} else if (strcmp(SelectedDirectory, "<z up 0.02>")==0) {
|
||||
SERIAL_PROTOCOLLNPGM("Special Menu: Z Up 0.02");
|
||||
enqueue_and_echo_commands_P(PSTR("G91\nG1 Z+0.02\nG90"));
|
||||
} else if (strcmp(SelectedDirectory, "<z down 0.02>")==0) {
|
||||
SERIAL_PROTOCOLLNPGM("Special Menu: Z Down 0.02");
|
||||
enqueue_and_echo_commands_P(PSTR("G91\nG1 Z-0.02\nG90"));
|
||||
} else if (strcmp(SelectedDirectory, "<z down 0.1>")==0) {
|
||||
SERIAL_PROTOCOLLNPGM("Special Menu: Z Down 0.1");
|
||||
enqueue_and_echo_commands_P(PSTR("G91\nG1 Z-0.02\nG90"));
|
||||
} else if (strcmp(SelectedDirectory, "<exit>")==0) {
|
||||
SpecialMenu=false;
|
||||
}
|
||||
|
@ -232,14 +244,14 @@ void AnycubicTFTClass::Ls()
|
|||
if (SpecialMenu) {
|
||||
switch (filenumber) {
|
||||
case 0: // First Page
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Exit>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Exit>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotend PID>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotend PID>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotbed PID>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotbed PID>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Read EEPROM>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Read EEPROM>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Z Up 0.1>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Z Up 0.1>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Z Up 0.02>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Z Up 0.02>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Z Down 0.02>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Z Down 0.02>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Z Down 0.1>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Z Down 0.1>");
|
||||
break;
|
||||
|
||||
case 4: // Second Page
|
||||
|
@ -252,6 +264,17 @@ void AnycubicTFTClass::Ls()
|
|||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Save EEPROM>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Save EEPROM>");
|
||||
break;
|
||||
|
||||
case 8: // Third Page
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Exit>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Exit>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotend PID>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotend PID>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotbed PID>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotbed PID>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Read EEPROM>");
|
||||
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Read EEPROM>");
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue