how to count 2 consecutive counting loops with arduino while limiting each count? Answered
this is part of a larger project but i'm stuck on the code for the loop. to make the situation simpler lat's say:
i'm trying to count the number of button pushes and light 2 different LEDs.
let's say green LED for x times, after that the red LED y times and go on repetitively. in the void loop i would like to set the amount of pushes because they are variables set within the loop function and reading different inputs.