I think that will depend on the gcode sender you pick. There are very limited options for additional hardware connections on the GRBL controller in the Shapeoko. You will probably have to do all your custom additions entirely on the Pi400 side using the GPIO and your gcode sender.