Hi,
I am trying to add a filament movement indicator LED to the pin 57 of the reprap ramp 14 motherboard. Which needs to be turned ON when the E0 extruder motor is moving in forward direction and turn OFF when in reverse direction. I know the GCODE command M42 P57 S200 to turn ON/OFF that i can add to the Gcode while printing but I rather want to do it with the marlin firmware itself. i.e it does the same for all the prints.
Can anyone help me where to add the pinMode() and digitalWrite commands in the marlin firmware to do that. And also i want to add more LEDs to other movement settings too using the auxialry pins available in ramp 14, help me how do I do that ?