Hi there. First, thank you for your help. Note: I'm not native english, so probably I commit grammar mistakes.
I'm doing an exercise with Arduino that basically is to recreate the typical "Bottle" game with LEDs.
I have 8 leds connected to pins 1-8 and I want them to spin around until (after decreasing the speed), stops pointing randomly someone (one led is HIGH during 10 seconds)
The spinning and decreasing speed is fine, what i don't find is the way to, every time I press the button, ends the cycle pointing someone different. I guess that I have to tell the button to read one of the 8 ends I have in the code, something like "GOTO line XX" action. I don't find the way to make it.
Thank you very much, any help/clue is welcome. Curro.