Candle

// LED Candle Effect

// FACTOID: Notice that "define" lines are NOT semicolon-terminated
// because they are not really program lines. The "pre-processor"
// makes substitutions below and the compiler never sees these.
#define YELLOW1 9
#define RED 10
#define YELLOW2 11

void setup()
{
pinMode(YELLOW1, OUTPUT);
pinMode(RED, OUTPUT);
pinMode(YELLOW2, OUTPUT);
}

void loop() {
analogWrite(YELLOW1, random(120)+135);
analogWrite(RED, random(120)+135);
analogWrite(YELLOW2, random(120)+135);

delay(random(100));
}