I had look but you are right, I`m not a programmer and unfortunately I understand the composition too little. ...but who dares nothing, who gains nothing.
I had found this
case 355: // M355 S<0/1> - Turn case light on/off, no S = report status if (com->hasS()) { Printer::setCaseLight(com->S); } else { Printer::reportCaseLightStatus(); } break;
Just use the second fan. They can be controlled with P0 for first and P1 for second extruder with normal M106/M107. Repetier-Server will also offer control for both if you increase fan count to 2 in configuration.
Comments
I have started like this:
#define blower_fan
#define blower_fan FAN2_PIN // blower fan on/off mit fan2_pin
but how do I define the command like M336?
//#########################################################################################
//#### MCode addition/replacement
//#########################################################################################
bool Custom_MCode(GCode *com)
{
switch(com->M) {
//XXXX is the number you want to generate
case 336:
// break;
default:
return false;
}
return true;
}
#endif
...but who dares nothing, who gains nothing.
if (com->hasS()) {
Printer::setCaseLight(com->S);
} else {
Printer::reportCaseLightStatus();
}
break;