M42 can control pins directly. Some pins are prohibited (see pins.h bottom sensitive pins). For lights there is already a function to turn it on/off.
Where can I find some info for implementing this light function? I am just setting up a new build running Repetier Server Pro 8.0? (an about button would be helpful here...) on a Raspberry Pi3 connected to a MKS SBASE V1.3 (Smoothie compatable - apparently). I can see how I can configure one of the spare pins (e.g. P0.8) on the MKS board to use for this - but what commands (presumably G or M codes) does Repetier use for this function and what is the command syntax to use?
Comments