Was the spindle toggle problem ever resolved? I would like to do the same - I have the HB04 working well but would like to free up the 'half' button. I have got the mode button to toggle between auto and MDI but can't figure out how to get the spindle switching on and off with the spindle button only. I think I have managed to get it to switch on with
(in my CUSTOM_POSTGUI.HAL file)
loadrt toggle count=3
addf toggle.0 servo-thread
net spindle-toggle toggle.0.in <= xhc-hb04.button-spindle
net spindle-control toggle.0.out => halui.spindle.start
but I am confused as to how I now get it to stop as nothing I tried seemed to work.
Figuring out the configs is made more complicated by the fact that the mill is in the workshop and I am in the house running linuxcnc under emulation on a Mac.
Wanted to do the same for toggling functions for 'mist' on macro 6 and 'flood' on macro 7, so that I can use buttons Macro 1-3 for some probing/edge finding routines.
Feel I am nearly there as have jogging, zeroing and probing all working but when I start looking at hal files my eyes start to glaze over.