Hello! I'm very new to using Arduinos and have mostly just used it to interface some sensors into Puredata in the past. So this is my first Arduino only project.
The ultimate goal is to build an LED metronome (no sound) with a button, when tapped, will start the metronome cycle. So if my LED is blinking every 1000ms, and I tap the button at half way in between, it starts the 1000ms cycle from the top immediately.
That is the most important function.
What is the most confusing to me right now, is trying to detect that button tap at any given millisecond, while the blinking loop is running. Any suggestions would be great!