I'm sure this has been done a hundred times but I cannot find the suitable code searching the forums. I want to use a simple momentary switch to toggle between two set servo positions. I have my code working fine moving my servo to any position (pulse) I code but now need to add the switch. I.E. press switch and it goes to position A, press switch again and it goes to position B, press switch again and it goes back to potion A .....etc. Thanks in advance!!!
Edit: Using 8M2
Edit: Using 8M2
Last edited: