Add original 4MAX Metal configuration and build profile. Also add Case Light control.

This commit is contained in:
Knutwurst
2021-10-31 00:09:41 +02:00
parent bf4572488f
commit c4725d946d
5 changed files with 188 additions and 64 deletions

View File

@@ -212,6 +212,7 @@ void AnycubicTouchscreenClass::Setup()
FlowMenu = false;
BLTouchMenu = false;
LevelMenu = false;
CaseLight = false;
FilamentSensorEnabled = true;
MyFileNrCnt = 0;
currentFlowRate = 100;
@@ -2236,6 +2237,20 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
}
#endif
#if EITHER(KNUTWURST_4MAX, KNUTWURST_4MAXP2)
case 42:
if(CaseLight == true)
{
SERIAL_ECHOLNPGM("Case Light OFF");
queue.inject_P(PSTR("M355 S1 P0"));
CaseLight = false;
} else {
SERIAL_ECHOLNPGM("Case Light ON");
queue.inject_P(PSTR("M355 S1 P255"));
CaseLight = true;
}
#endif
#if ENABLED(KNUTWURST_MEGA_P_LASER)
case 34:// Continuous printing
{