Archived source flow
Technical notes
Forward and return paths
Each high front-limit input causes a forward step chunk. Once both are low, the sketch waits three seconds, returns motor 1 until its rear input is low, then returns motor 2. The next loop starts again.
Configuration and pin conflict
Initial and reverse speeds are separate settings, but the code does not restore the initial speed before later forward cycles. Two motor-drive pins are also assigned to front-limit inputs.
Draft limits
The waits are blocking, with no timeout or fault-stop path. There is no implemented external start/stop trigger or separate startup-homing routine. This is archived code behaviour, not proof of a safe or working motion system.