I have an ender 3 and I broke the part cooling fan output. I don't want to buy a new board so I would like to use the raspberry with octoprint that I use to send the PWM to the fan.
To do so I would like to know how I could know when an M106 command is send to the printer to run a script that will do the PWM ?
I don't know if I'm understandable.
If you have any questions or ideas tell me.