Stealthburner LED colors and brightness change with a macro
-
So far a change only works at startup. All further M150 commands entered in the WDC console have no effect.
Duet3 Mini5+; version 3.5.0-rc.1
config.g entry:
M950 E0 C"led" T2 Q3000000
M150 E0 R255 P100 S1 F1
M150 E0 U255 B255 P100 S2 F1
M150 E0 U255 B255 P100 S3 F0
What does the M150 command have to look like so that the color or brightness can be changed at any time with a macro?Many thanks for your help
-
@Wobi I've writen a macro set to controll the Stealthburner leds.
The one on git is somewhat outdated, but should work with RRF 3.5.0 beta 2/3 (can't remember exactly) and ondwards.
Please backup your current config before you try mine out, since i haven't had time to push the updates to git in quite some time (as you can see).
-
Thanks, I'll test that
-
Thank you, that worked.
I just have to use the M950 command on every change
Problem solved -
@Wobi You should not need to set M950 each time. Can you post the code you are using? I think you might be misunderstanding the use of the S parameter and F parameter.
You can also set the number of LEDs in M950 with the U parameter, which will save memory.
Ian
-
@Wobi said in Stealthburner LED colors and brightness change with a macro:
Hello Ian, the start code of config.g is above, here is my macro code to turn off the two nozzle LEDs:
M950 E0 C"led" T2 Q3000000
M150 E0 R255 P100 S1 F1
M150 E0 U255 B255 P0 S2 F1
M150 E0 U255 B255 P0 S3 F0 -
@Wobi I think you have the S parameter a bit wrong. You have S1 followed by S2 then S3. The S parameter isn't the LED number, it is the number of LEDs to be set to that colour, ie S1 sets the first LED, S2 sets the next two LEDs, and S3 sets the next 3 LEDS. So it is implying you have six LEDs. I think you only have three! Try:
M150 E0 R255 P100 S1 F1 M150 E0 U255 B255 P0 S2 F0
You shouldn't need the M950 line.
Ian
-
Hello Ian, that's right, that's how it works without the M950 command.
Thank you very much and problem solved now, thank you. -
-