rzelko:
I am new to coding and I am trying to understand how to cycle through an array, one element at a time. I thought that I needed a for loop at first, but this simply cycles through the entire array. How can I manually step through an array?
int myStations[5] = {911, 985, 1011, 1051};
int stationIndex = 0;
void setup
{
}
void loop
{
if (cycleCondition == true)
{
stationIndex++;
}
}