// --- Three LEDs Always On (No Blinking, No Button Input) ---
// Define the pins connected to the LEDs.
// This array holds the digital pin numbers for all 3 LEDs.
const int ledPins[] = {2, 3, 4}; // Digital pin numbers for the 3 LEDs.
void setup() {
// The setup() function runs once when the Arduino is powered on or reset.
// It's used to initialize pin modes and other settings.
// Set up all LED pins as OUTPUTs and turn them ON permanently.
// We loop through the 'ledPins' array to configure each LED.
for (int i = 0; i < 3; i++) {
pinMode(ledPins[i], OUTPUT); // Configure the current LED pin as an OUTPUT.
digitalWrite(ledPins[i], HIGH); // Set the LED to HIGH (ON) permanently.
}
// Serial communication can still be initialized if you need it for other debugging,
// but it's not strictly necessary for just keeping LEDs on.
Serial.begin(9600);
}
void loop() {
// The loop() function runs continuously after setup() completes.
// In this version, there's nothing active to do in the loop,
// as the LEDs are set to HIGH in setup() and remain that way.
// This keeps the program very simple and efficient.
}