From 5432154bf7f1768f71f5fb0779bcdba416d7a706 Mon Sep 17 00:00:00 2001 From: David Ramiro Date: Sat, 17 Nov 2018 22:02:55 +0100 Subject: [PATCH] Update special menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Added auto PID tune of heatbed to the special TFT menu •Enabled automatic saving on both PID tune commands • Added preheating and mesh leveling commands to the special TFT menu • Mentioned changes in readme --- Marlin/AnycubicTFT.cpp | 37 ++++++++++++++++++++++++++----------- README.md | 6 ++++-- 2 files changed, 30 insertions(+), 13 deletions(-) diff --git a/Marlin/AnycubicTFT.cpp b/Marlin/AnycubicTFT.cpp index 5aa8819..077d0fc 100644 --- a/Marlin/AnycubicTFT.cpp +++ b/Marlin/AnycubicTFT.cpp @@ -202,17 +202,26 @@ void AnycubicTFTClass::HandleSpecialMenu() if(strcmp(SelectedDirectory, "")==0) { SpecialMenu=true; } else if (strcmp(SelectedDirectory, "")==0) { - SERIAL_PROTOCOLLNPGM("Special Menu: Auto Tune PID"); - enqueue_and_echo_commands_P(PSTR("M303 C8 S200")); - } else if (strcmp(SelectedDirectory, "")==0) { - SERIAL_PROTOCOLLNPGM("Special Menu: Auto Bed Leveling"); - enqueue_and_echo_commands_P(PSTR("G28\nG29")); + SERIAL_PROTOCOLLNPGM("Special Menu: Auto Tune Hotend PID"); + enqueue_and_echo_commands_P(PSTR("M303 E0 S200 C8 U1")); + } else if (strcmp(SelectedDirectory, "")==0) { + SERIAL_PROTOCOLLNPGM("Special Menu: Auto Tune Hotbed Pid"); + enqueue_and_echo_commands_P(PSTR("M303 E-1 S60 C8 U1")); } else if (strcmp(SelectedDirectory, "")==0) { SERIAL_PROTOCOLLNPGM("Special Menu: Save EEPROM"); enqueue_and_echo_commands_P(PSTR("M500")); } else if (strcmp(SelectedDirectory, "")==0) { SERIAL_PROTOCOLLNPGM("Special Menu: Read EEPROM"); enqueue_and_echo_commands_P(PSTR("M501")); + } else if (strcmp(SelectedDirectory, "")==0) { + SERIAL_PROTOCOLLNPGM("Special Menu: Preheat Bed"); + enqueue_and_echo_commands_P(PSTR("M140 S60")); + } else if (strcmp(SelectedDirectory, "")==0) { + SERIAL_PROTOCOLLNPGM("Special Menu: Start Mesh Leveling"); + enqueue_and_echo_commands_P(PSTR("G29 S0")); + } else if (strcmp(SelectedDirectory, "")==0) { + SERIAL_PROTOCOLLNPGM("Special Menu: Next Mesh Point"); + enqueue_and_echo_commands_P(PSTR("G29 S1")); } else if (strcmp(SelectedDirectory, "")==0) { SpecialMenu=false; } @@ -227,15 +236,21 @@ void AnycubicTFTClass::Ls() ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); - ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); - ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); - ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); - ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); break; case 4: // Second Page - ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); - ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); + ANYCUBIC_SERIAL_PROTOCOLLNPGM(""); break; default: diff --git a/README.md b/README.md index ed24cc7..f874e75 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ While the i3 Mega is a great printer for it's price and produces fantastic resul - Much more efficient bed heating by using PID control. This uses less power and holds the temperature at a steady level. Highly recommended for printing ABS. - Fairly loud fans, while almost every one of them is easily replaced, the stock FW only gives out 9V instead of 12V on the parts cooling fan so some fans like Noctua don't run like they should. This is fixed in this firmware. - Thermal runaway protection: Reducing fire risk by detecting a faulty or misaligned thermistor. +- Easily start an auto PID tune or mesh bed leveling via the special menu (insert SD card, select special menu and press the round arrow) ### How to flash this? @@ -75,12 +76,13 @@ While the i3 Mega is a great printer for it's price and produces fantastic resul - Heatbed PID mode enabled - Buffer & baudrate tweaks to improve print quality over USB - 12V capability on FAN0 (parts cooling fan) enabled +- No startup beep ### Additional features by derhopp: -- Subdirectory support: you have to press the round arrow after selecting a directory -- Special menu in the SD file menu: you have to press the round arrow after selecting a special menu item +- Subdirectory support: Press the round arrow after selecting a directory +- Special menu in the SD file menu: Press the round arrow after selecting `Special menu` ### Todo: