Heyooo, I made some code meant to look like a rising sun, then a rising moon. It's super simple, but I wanted to make something small since I haven't coded in like 1,000,000 years. It is super long, but I had to fit all the LED commands. Feel free to try it!
Code is below
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
LED led;
Timer timer;
void button_press (void) {
led.turn_on_single(SW, YELLOW);
led.turn_on_single(NW, BLUE);
led.turn_on_single(NE, BLUE);
led.turn_on_single(SE, BLUE);
timer.pause(2000);
led.turn_on_single(SW, BLUE);
led.turn_on_single(NW, YELLOW);
led.turn_on_single(NE, BLUE);
led.turn_on_single(SE, BLUE);
timer.pause(2000);
led.turn_on_single(SW, BLUE);
led.turn_on_single(NW, BLUE);
led.turn_on_single(NE, YELLOW);
led.turn_on_single(SE, BLUE);
timer.pause(2000);
led.turn_on_single(SW, BLUE);
led.turn_on_single(NW, BLUE);
led.turn_on_single(NE, BLUE);
led.turn_on_single(SE, YELLOW);
timer.pause(2000);
led.turn_on_single(SW, BLUE);
led.turn_on_single(NW, BLUE);
led.turn_on_single(NE, BLUE);
led.turn_on_single(SE, BLUE);
timer.pause(2000);
led.turn_on_single(SW, WHITE);
led.turn_on_single(NW, BLUE);
led.turn_on_single(NE, BLUE);
led.turn_on_single(SE, BLUE);
timer.pause(2000);
led.turn_on_single(SW, BLUE);
led.turn_on_single(NW, WHITE);
led.turn_on_single(NE, BLUE);
led.turn_on_single(SE, BLUE);
timer.pause(2000);
led.turn_on_single(SW, BLUE);
led.turn_on_single(NW, BLUE);
led.turn_on_single(NE, WHITE);
led.turn_on_single(SE, BLUE);
timer.pause(2000);
led.turn_on_single(SW, BLUE);
led.turn_on_single(NW, BLUE);
led.turn_on_single(NE, BLUE);
led.turn_on_single(SE, WHITE);
timer.pause(2000);
led.turn_on_single(SW, BLUE);
led.turn_on_single(NW, BLUE);
led.turn_on_single(NE, BLUE);
led.turn_on_single(SE, BLUE);
timer.pause(2000);
led.turn_off_all();
}