Add original 4MAX Metal configuration and build profile. Also add Case Light control.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user