BLINK RGB COLOURS & WHITE LEDs

// blink in order: RGB Red, RGB Green, RGB Blue, LED 5, LED 6, LED A2, LED A4, LED A3.
const byte Pins[] = {9, 11, 10, 5, 6, A2, A4, A3};
const byte Count = sizeof Pins / sizeof Pins[0];  // Calculate the number of elements in an array


void setup() {
  // Set initial state and pin mode
  for (int i=0; i<Count; i++) {
    digitalWrite(Pins[i], LOW);
    pinMode(Pins[i], OUTPUT);
  }

  delay(1000);

  // Blink in sequence
  for (int i=0; i<Count; i++) {
    digitalWrite(Pins[i], HIGH);
    delay(200);
    digitalWrite(Pins[i], LOW);
    delay(200);  // Optional if you want off time between LEDs
  }
}

void loop() {}