Spark Lights

Introduction: Spark Lights

About: I'm an engineering student passionate about Creativeness coding!

A Spark Core enabled Spark Button.

Step 1: Kits Required

A Spark Core (iot)

An USB Data Cable

A Spark Button

Step 2: Setting Up the Spark Core With the Spark Button

The Spark Button comes along with 11 RGB LED's onboard. The Spark core directly fits on the Spark button.

Step 3: Connecting to the Internet

The Spark Core must be connected to the internet in order to upload the codes onto the board. This can be done with the help of the Spark core app.

Step 4: Writing the Codes

The codes must be written online (spark.io/build) in the same registered account which was used to connect the Core to the internet.

The codes may look similar to this -

#include "SparkButton/SparkButton.h"

SparkButton b = SparkButton();

void setup() {

b.begin();

}

void loop() {

b.allLedsOn(0,20,20);

}

Once you're done, verify your codes with the online compiler and flash these codes to your Spark Core.

Step 5: Upload Complete !

The LED's illuminate according to your codes. Enjoy the lighting !

Be the First to Share

    Recommendations

    • The 1000th Contest

      The 1000th Contest
    • Battery Powered Contest

      Battery Powered Contest
    • Hand Tools Only Challenge

      Hand Tools Only Challenge

    Discussions

    0
    Samantha Led
    Samantha Led

    5 years ago on Introduction

    Nice !

    Look this rechargeable led lights : http://rechargeable-led-light.com