int yellowLED = 6;
int redLED = A8;
int yellowLED2 = A7;
int switchPin = A9;
int switchLED = A5;
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(yellowLED, OUTPUT);
pinMode(switchPin, INPUT_PULLUP);
pinMode(switchLED, OUTPUT);
}
void loop() {
int switchState;
switchState = digitalRead(switchPin);
digitalWrite(yellowLED,LOW);
digitalWrite(yellowLED2,LOW);
digitalWrite(redLED,LOW);
digitalWrite(switchLED,LOW);
if (switchState == LOW)
{
int brightness;
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(30);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(10);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(11); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(10);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(11); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
analogWrite(redLED, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED, brightness);
analogWrite(yellowLED2, brightness);
delay(5); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
for (brightness = 255; brightness >= 0; brightness = brightness - 1)
{
analogWrite(yellowLED2, brightness);
delay(2); }
for (brightness = 0; brightness <= 255; brightness = brightness + 1)
{
analogWrite(yellowLED2, brightness);
delay(2);}
...
This file has been truncated, please download it to see its full contents.
Comments