Unfortunately, M108 is now already in use by Marlin. Also, hacking in a new command wasn't quite as simple as it used to be. Earlier a command simply executed an analogWrite(), now it's all delegated to a planner object and a thermalManager object.
While poking around, I came across Marlin's M42 command. Basically, it lets you specify a pin number, and write a value to that pin. So this command:
Code: Select all
M42 P6 S155
Code: Select all
M108 S155
Code: Select all
M42 P6 S155 ; instead of M108 S155
Code: Select all
M42 P6 S0 ; instead if M108 S0
Code: Select all
M42 P6 S155
Code: Select all
M42 P6 S0