Does anybody know how to integrate sensors using g-code commands in RepRapFirmware? I found that
M226 (Marlin, Repetier) allows you to wait for a pin state. This essentially means that you can wire up any sensor to the pin and wait for it to go high/low once the command is called. However, this is not supported in RepRapFirmware.
My goal is to automate specific tasks - one example could be to duplicate the homing macros with a different motor. So a macro could:
1. Turn on a motor
2. Wait until a sensor is triggered
3. Turn off the motor
4. Do some action
Is there a way to implement a functionality like this? My thought was to use a combination of
M226 and
M42 to create custom actions that would be configurable via g-code commands.