Const Int NumLeds
Const Int NumLeds
const int ledPins[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}; // Pin numbers for the LEDs
void setup() {
void loop() {
analogWrite(ledPins[i], 255);
delay(500);
analogWrite(ledPins[i], 0);
// Turn on the next LED at reduced brightness (128) if it's not the last one
if (i < numLeds - 1) {
delay(600);
// Turn off the next LED if it's not the last one
if (i < numLeds - 1) {