LED ON OFF Macro or Toogle
-
hey, I would like to do exactly the same thing, I'm also on RRF3.1.1 but the gcode above doesn't work for me, it just turns the light on or off depending on what I enter, but I can't switch back and forth with one macro, do I need RRF3.2 or is it something else....
-
@MauriceM
You need to wire your LED to the same pin as shown in the codeEDIT:
When you say "back and forth", do you mean you want a single change or flashing ? -
Yeah i changed the pin in the Command.
My target is it to press the button and the light will go on, and when i press the button again the light turns off.
But it does only one. depends on how i configure it.
-
@MauriceM Configure trigger for the button, and put this gcode in trigger#.g
-
I've done basically the same thing except, i've configured it as a fan, here's my code (include PSU Control)
if fans[3].actualValue == 0 M80 M106 P3 S1.0 else M106 P3 S0 M81 S1
-
I've got a new question....is there some kind of "list" of parameters I may refer to?
At the moment I want to built a calibration routine for a dual extruder printer.
For this I want to check wether filament is loaded. If filament is not loaded, I want to load PLA, if filament is loaded, the routine should continue.See here for more Info on the calibration routine I want to built.
https://forum.duet3d.com/topic/21737/rrf3-dual-extruder-calibration-tool-and-nozzle-offset?_=1614175374759Thanks
Max -
In 3.2 there is a DWC plugin for browsing the object model, does that count as a list?
-
This post is deleted! -
@user-m_123 said in LED ON OFF Macro or Toogle:
@jay_s_uk hey
i want to on led when my print is stop so can i use this into stop.g????Sure
-
This post is deleted! -
@jay_s_uk said in LED ON OFF Macro or Toogle:
if state.gpOut[1].pwm == 1 M42 P1 S0 else M42 P1 S1
Just updated all 7 of my printers with this!!