toogle2nist works perfectly, but I have to change the debouncetime in the componet. it will be more comfortable if the debounce-time is changed by a hal pin
Code:
loadrt toggle2nist names=toggle.coolant
addf toggle.coolant servo-thread
net coolant_is_on toggle.coolant.is-on <= halui.flood.is-on
net coolant_button toggle.coolant.in <= emcopanel.coolant
net coolant_on toggle.coolant.on => halui.flood.on
net coolant_off toggle.coolant.off => halui.flood.off
Code:
component toggle2nist "toggle button to nist logic";
pin in bit in "momentary button in";
pin in bit is_on "current state of device";
pin in unsigned debounce = 50 "debounce delay for 'in'-pin in cycles";
....
....