Custom toolboard + duet wiring limitations
-
@SamKudarauskas you can use M582 https://docs.duet3d.com/User_manual/Reference/Gcodes#m582-check-external-trigger to check the state of a trigger, and to trigger it if it is in a particular state.
Ian
-
@fcwilt I was curious about binding two or more macros to a single button. One to execute if the button is tapped and a different one if it is held down.
Sam
-
@SamKudarauskas said in Custom toolboard + duet wiring limitations:
@fcwilt I was curious about binding two or more macros to a single button. One to execute if the button is tapped and a different one if it is held down.
Sam
Held down how long?
You might be able to put in the trigger a G4 delay followed by a test of the appropriate input using
sensors.gpIn[#].value = 0 ; or sensors.gpIn[#].value = 1
where # is the number of the gpin used as the input for the trigger to monitor.
Frederick
-
@SamKudarauskas you will need to detect it's held down in the trigger then have a while loop that looks for the release, if it's released within a certain time then carry out action A, if after that time, Action B