I have 2 motors, 2 endstop limit switch, 1 lcd 12864, arduino mega with ramps 1.4 shield.
I just need simple program that I can upload to my arduino board.
Like first time turn on, it have built it program to homing. and another program to run.
I am build a big glass cleaner using this machine. so no need third axis.
What is your expectation? Do you want help to put the hardware together and write the software or do you want us to do all the work for free?
If the former:
Post your best attempt at writing the code. Please read the forum guidelines to see how to properly post code and some information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Please post a schematic. Written descriptions are always more ambiguous than a drawing. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies.
What are the motor drivers? What are the specifications of the motor power supply.