Hello , I am new in programing ,so i have some questions.
Can someone help me to build a code for controling switches.
I want program to wait until Switch 1 i active and give power to another pin , then when switch 2 is active to stop switch 1 and give power to another pin , then switch 3 stop power and return to beginning to wait swtich 1 ?
Sorry for poor English
It is ON OFF Switches and when switch is active give power to motor and waits to hit the next switch . I have searched but i can't find this kind of code that wait until switch is ON and perfom the next step :(. Or maybe i have mised it .