Hello! I'm pretty brand new to arduino. I've tried every combination of search terms for what I'm trying to do that I can think of and I haven't been able to find anything, so I'm hoping you all might be able to help.
What I'm trying to do is have a servo connected to a push button that makes it rotate 180 degrees, hold there for 30 seconds, and then rotate back to 0 with a single push. However, I only want this action to take place on every 11th press of the button. So 10/11 times that you push the button, nothing happens to the servo. So far, all I've been able to make it do is rotate the servo 180 when I press the button, and then rotate it back to 0 when I press it again. I found some code for initiating the servo to rotate, hold, and rotate back with a button push, but I haven't even been able to get that to work.
Any help/advice/resources you can point me towards is super, super appreciated! Thanks for your time!