<font face="Arial, Verdana">Awesome - I just tested it and it works perfectly!! From the web interface (console) I can even control the brightness as I have the leds on a pwm pin on the MKS SBASE board. From the Pi's display of course I can only turn ON/OFF. </font>
This is what I put in the Smoothie config:
<font style="font-size: x-small; font-family: "Courier New";">switch.caselights.enable true #</font>
<font style="font-size: x-small; font-family: "Courier New";">switch.caselights.input_on_command M355_S255 #</font>
<font style="font-size: x-small; font-family: "Courier New";">switch.caselights.input_off_command M355_S0 #</font>
<font style="font-size: x-small; font-family: "Courier New";">switch.caselights.output_pin 3.25 #</font>
<font style="font-size: x-small; font-family: "Courier New";">switch.caselights.output_type pwm # pin mode</font>
<font style="font-size: x-small; font-family: "Courier New";">switch.caselights.output_on_command 1 # lights on response</font>
<font style="font-size: x-small; font-family: "Courier New";">switch.caselights.output_off_command 0 # lights off response</font>
<font style="font-size: x-small; font-family: "Courier New";">
</font>
<font style="font-size: x-small; font-family: Arial;">I also modified the smoothieware.xml file on the Pi as per the above.</font>
<font style="font-size: x-small; font-family: Arial;">
</font>
It would be nice to be able to control the brightness from the Pi's display (like the Fan , Flow , Speed settings) ...
;)