additional functions with triggers
-
Hello, i'd like to ask if it is possible to add some functions to the triggers.
- Is it possible to make a debounce function for the trigger input "M950 J"?
- Is it possible to temporary enable/disable the trigger?
Once again: Thanks for your work
-
@cosmowave said in additional functions with triggers:
Hello, i'd like to ask if it is possible to add some functions to the triggers.
- Is it possible to make a debounce function for the trigger input "M950 J"?
There is no built-in function to do this yet, however you can use conditional GCode to debounce. For example, if the trigger activates on an inactive-to-active transition of GpIn port 0 then you could use this in the trigger file:
G4 P10 ; delay 10ms if sensors.gpIn[0].value = 1 ; check that the input is still high <your code here>
- Is it possible to temporary enable/disable the trigger?
Yes, use M581 with the correct T parameter and R-1.
-
@dc42 perfect.
Thanks for the explanation!