top of page
Candle Code

Roll a sheet of copy paper into a cylinder and place it over the led to create a burning candle effect. 

//LED Candle
int yellowLed1 = 9;
int redLed = 10;
int yellowLed2 = 11;

void
setup()
{

pinMode(yellowLed1, OUTPUT);
pinMode(redLed, OUTPUT);
pinMode(yellowLed2, OUTPUT);
}
void
loop()
{

analogWrite(yellowLed1, random(120)+135);
analogWrite(redLed, random(120)+135);
analogWrite(yellowLed2, random(120)+135);
delay(random(100));
}

Igniting Innovation through Functional Prototyping and Physical Computing

Contact Information

odysseyboardedu.@gmail.com
Phone: (360) 303-5526
24338 Lee Road
Mount Vernon, WA 98274

Contact Us

Thanks for submitting!

© 2017 by Odyssey Board. All rights reserved.

bottom of page