I am attempting to use a CPAP fan as a parts cooler for my 3d printer. Since it needs a controller to function (ESC), on my Duet WIFI 2, I cannot just plug it into the fan0 port on the controller board. Good news is that I was able to re-purpose one of the heater pins to behave like a servo and then I can use an M42 command to turn on / off the CPAP fan and increase / decrease the fan speed. For example
CPAP fan at 0%
M42 P8 S0.4
CPAP fan at 100%
M42 P8 S0.7
What I am hoping to accomplish is to re-use the post processing script InsertAtLayerChange to conver