I have been trying to configure AUX 1 pins (pin D1) to become an input pin that would trigger a specific set of Gcode and once the command is completed, it would wait for another trigger of the pin D1. I have defined the pin number in pins.h but not sure how to define it as an input pin or set the immediate Gcode command using the enqueque_and_echo_commands_P (pgcode). I hope someone would enlighten me with the procedure.
Thanks a tonne.
Paavanan
(An Average Joe)