Update special menu

• 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
This commit is contained in:
David Ramiro 2018-11-17 22:02:55 +01:00
parent c583398198
commit 5432154bf7
No known key found for this signature in database
GPG Key ID: 5B042737EBEEB736
2 changed files with 30 additions and 13 deletions

View File

@ -202,17 +202,26 @@ void AnycubicTFTClass::HandleSpecialMenu()
if(strcmp(SelectedDirectory, "<special menu>")==0) { if(strcmp(SelectedDirectory, "<special menu>")==0) {
SpecialMenu=true; SpecialMenu=true;
} else if (strcmp(SelectedDirectory, "<auto tune hotend pid>")==0) { } else if (strcmp(SelectedDirectory, "<auto tune hotend pid>")==0) {
SERIAL_PROTOCOLLNPGM("Special Menu: Auto Tune PID"); SERIAL_PROTOCOLLNPGM("Special Menu: Auto Tune Hotend PID");
enqueue_and_echo_commands_P(PSTR("M303 C8 S200")); enqueue_and_echo_commands_P(PSTR("M303 E0 S200 C8 U1"));
} else if (strcmp(SelectedDirectory, "<auto bed leveling>")==0) { } else if (strcmp(SelectedDirectory, "<auto tune hotbed pid>")==0) {
SERIAL_PROTOCOLLNPGM("Special Menu: Auto Bed Leveling"); SERIAL_PROTOCOLLNPGM("Special Menu: Auto Tune Hotbed Pid");
enqueue_and_echo_commands_P(PSTR("G28\nG29")); enqueue_and_echo_commands_P(PSTR("M303 E-1 S60 C8 U1"));
} else if (strcmp(SelectedDirectory, "<save eeprom>")==0) { } else if (strcmp(SelectedDirectory, "<save eeprom>")==0) {
SERIAL_PROTOCOLLNPGM("Special Menu: Save EEPROM"); SERIAL_PROTOCOLLNPGM("Special Menu: Save EEPROM");
enqueue_and_echo_commands_P(PSTR("M500")); enqueue_and_echo_commands_P(PSTR("M500"));
} else if (strcmp(SelectedDirectory, "<read eeprom>")==0) { } else if (strcmp(SelectedDirectory, "<read eeprom>")==0) {
SERIAL_PROTOCOLLNPGM("Special Menu: Read EEPROM"); SERIAL_PROTOCOLLNPGM("Special Menu: Read EEPROM");
enqueue_and_echo_commands_P(PSTR("M501")); enqueue_and_echo_commands_P(PSTR("M501"));
} else if (strcmp(SelectedDirectory, "<preheat bed>")==0) {
SERIAL_PROTOCOLLNPGM("Special Menu: Preheat Bed");
enqueue_and_echo_commands_P(PSTR("M140 S60"));
} else if (strcmp(SelectedDirectory, "<start mesh leveling>")==0) {
SERIAL_PROTOCOLLNPGM("Special Menu: Start Mesh Leveling");
enqueue_and_echo_commands_P(PSTR("G29 S0"));
} else if (strcmp(SelectedDirectory, "<next mesh point>")==0) {
SERIAL_PROTOCOLLNPGM("Special Menu: Next Mesh Point");
enqueue_and_echo_commands_P(PSTR("G29 S1"));
} else if (strcmp(SelectedDirectory, "<exit>")==0) { } else if (strcmp(SelectedDirectory, "<exit>")==0) {
SpecialMenu=false; SpecialMenu=false;
} }
@ -227,15 +236,21 @@ void AnycubicTFTClass::Ls()
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 Hotend PID>"); ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotend PID>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Bed Leveling>"); ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotbed PID>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Bed Leveling>"); ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Auto Tune Hotbed PID>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Save EEPROM>"); ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Read EEPROM>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Save EEPROM>"); ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Read EEPROM>");
break; break;
case 4: // Second Page case 4: // Second Page
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Read EEPROM>"); ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Preheat bed>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Read EEPROM>"); ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Preheat bed>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Start Mesh Leveling>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Start Mesh Leveling>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Next Mesh Point>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Next Mesh Point>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Save EEPROM>");
ANYCUBIC_SERIAL_PROTOCOLLNPGM("<Save EEPROM>");
break; break;
default: default:

View File

@ -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. - 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. - 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. - 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? ### 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 - Heatbed PID mode enabled
- Buffer & baudrate tweaks to improve print quality over USB - Buffer & baudrate tweaks to improve print quality over USB
- 12V capability on FAN0 (parts cooling fan) enabled - 12V capability on FAN0 (parts cooling fan) enabled
- No startup beep
### Additional features by derhopp: ### Additional features by derhopp:
- Subdirectory support: you have to press the round arrow after selecting a directory - Subdirectory support: 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 - Special menu in the SD file menu: Press the round arrow after selecting `Special menu`
### Todo: ### Todo: