Introduction: Disco LED Disc

What you will need to make the disco LED Disc is the following:

A Spark Core and an internet button, as you can see in the images above.

Step 1: Getting Connected

Place the Spark Core onto the internet button as shown above. Connect the Spark Core via the usb and connect it to the wifi until the cyan LED pulses.

Step 2: Logging On

Then proceed to the Spark website www.spark.io/start and login. If you do not have an account then quickly create one by signing up.

Step 3: Coding

Now it's time to code. The code below shows you how to get the LEDs to light up in different colours and at different speeds. You can change the colours and speeds to your specifications. Remember to include Sparkbutton.h to your app(Code Program).

#include "SparkButton/SparkButton.h"

SparkButton b = SparkButton();

void setup()

{ b.begin();

}

void loop()

{

b.ledOn(1,255,255,255);

delay(50);

b.ledOn(2,30,144,255);

delay(50);

b.ledOn(3,0,0,255);

delay(50);

b.ledOn(4,199,21,133);

delay(50);

b.ledOn(5,148,0,211);

delay(50);

b.ledOn(6,127,255,0);

delay(50);

b.ledOn(7,0,255,0);

delay(50);

b.ledOn(8,255,69,0);

delay(50);

b.ledOn(9,255,0,0);

delay(50);

b.ledOn(10,255,255,0);

delay(50);

b.ledOn(11,255,255,224);

delay(50);

b.ledOff(1);

delay(50);

b.ledOff(2);

delay(50);

b.ledOff(3);

delay(50);

b.ledOff(4);

delay(50);

b.ledOff(5);

delay(50);

b.ledOff(6);

delay(50);

b.ledOff(7);

delay(50);

b.ledOff(8);

delay(50);

b.ledOff(9);

delay(50);

b.ledOff(10);

delay(50);

b.ledOff(11);

delay(50);

}

Step 4: The Final Product

Once you have done the coding and flashed the coding to your core, the out come should look like the picture and video above.

I hope you have a lot of fun with this!!