const int RED_PIN = 9;
const int GREEN_PIN = 10;
const int BLUE_PIN = 11;
void setup() {
pinMode(RED_PIN, OUTPUT);
pinMode(GREEN_PIN, OUTPUT);
pinMode(BLUE_PIN, OUTPUT);
}
void loop() {
int flicker = random(-30, 30);
int red = constrain(180 + flicker, 0, 255); // Base red color
int green = constrain(100 + flicker / 2, 0, 255); // Base green
int blue = constrain(20 + flicker / 3, 0, 255); // Base blue (low for warm color)
analogWrite(RED_PIN, red);
analogWrite(GREEN_PIN, green);
analogWrite(BLUE_PIN, blue);
delay(random(50, 150)); // Flicker speed
}