Happy Halloween


#1

Hi everybody!
To celebrate Halloween I made this code to spooky up your day. Check out the orange!:jack_o_lantern:

LED led;
Timer timer;
void setup() {
// put your setup code here, to run once:

}

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

}

void button_press(void) {
for (int i = 0; i < 20; i++){
led.setLight(0, 83, 4, 0);
led.setLight(1, 83, 4, 0);
led.setLight(2, 83, 4, 0);
led.setLight(3, 83, 4, 0);
timer.pause(1000);
led.turn_off_all();
led.flash_all(GREEN, 1000);
led.flash_all(MAGENTA, 1000);
}
}


#2

WHOOAAAAAA, YOU DID ORANGE!!! THAT IS SO GREAT!!!

Thanks for sharing this!


#3

Oh Cool! :sunglasses::jack_o_lantern:


#4

You should write a tutorial on how you got orange to work!!


#5

Ooh that would be awesome!


#6

Yes I would also like to know how you made this because I did not find setLight in the Docs so you must have done some digging to find it.


#7

This is so awesome!