Code for the back to school contest


#1

Hi to get started with fall and into school I wrote code that has changing leaf colors. Fall is my fave season!

-Tacochada

void loop() {
// put your main code here, to run repeatedly:

LED led;
Timer timer;
Animation anim;

for (int i=0; i<3; i++) {
anim.breathe_single_color(CYAN);
}
for(int i=0; i>3; i++){
anim.breathe_single_color(YELLOW);
}
for(int i=0; i>3; i++){
anim.breathe_single_color(RED);
}

for (int i=0; i<5; i++) {
led.turn_on_single(NW,RED);
timer.pause(1000);
led.turn_on_single(SW,YELLOW);
timer.pause(1000);
led.turn_on_single(NE,RED);
timer.pause(1000);
led.turn_on_single(SE,YELLOW);
timer.pause(1000);
led.turn_on_single(NW,YELLOW);
timer.pause(1000);
led.turn_on_single(SW,RED);
timer.pause(1000);
led.turn_on_single(NE,YELLOW);
timer.pause(1000);
led.turn_on_single(SE,RED);
}
led.turn_off_all();
}