Stepper wiring for Root 4?

So I’ve almost got all the parts for my Root 4 CNC build. I’ve mocked up the ramps 1.4 controller with the DM542Y steppers, but I’m having trouble figuring out the wiring. Can you post some pics of what pins you use on the Ramps 1.4 board and what they wire to on the stepper driver? Thanks.