byte theArray[8] = {0,1,2,3,4,5,6,7};
int arpPatternLength = 8;
bool q_FLAG = true;
void setup() {
Serial.begin(9600);
int q = 0;
while (q < arpPatternLength) {
Serial.print(theArray[q]);
Serial.print(" ");
if (q_FLAG == true) {
q = q + 2;
q_FLAG = false;
}
else {
q = q - 1;
q_FLAG = true;
}
} // while
Serial.println();
Serial.println();
Serial.println("all done.");
Serial.println();
}
void loop() {
}