My current printer uses a proximity sensor with auto bed leveling enabled in Marlin (does not work very well.)
My new printer I would like to use 4 small Z Steppers with their own endstops for bed leveling.
Arduino Mega 2560 with ramps 1.4 running Marlin.
With 1X, 1Y and 2 Extruders
Arduino Uno with CNC Shield running my firmware for True Bed leveling.
With 4X Z Steppers
My Question is
Can I use digitalread to read the output from the Z driver socket in the Mega and the digitalWrite on the 4 steppers on the Uno.
My goal is when home is called the Mega tells the UNO to run the leveling sequence then the Uno to take the Z movements from the Mega