I have made two python scripts each on the motor control. One program runs the motors in forward direction and another program runs the motor in reverse direction.
Now I want to run two scripts with the delay of 5 secs. I mean, script1.py first and script2.py after script1.py.
Please help me to write the code. I will rotate the motor in forward direction (script1.py) for 5 secs and after that the motors will rotate in reverse direction (script2.py). then again in forward direction and again in reverse. This will continue until I halt the program manually.
Any suggestion is acceptable.