The main idea of this project is for a motor to turn clockwise when a switch has been pressed and that said motor will continue turning for a certain time and then it will stop. after a 2nd switch is pressed, the motor will then turn anti-clockwise for a certain time and then it will stop. my problem is that it simply cannot stop looping. can any kind souls here help me out? my lecturer told me to put another "while(1)" at the end of the delay but that just stops the whole programme.