Introduction: Controlling LED's on the LinkIt One Board

Picture of Controlling LED's on the LinkIt One Board

In this Tutorial we will be learning how to control LED's with a LinkIt One board

Step 1: Code

Picture of Code

I made a simple code to control 3 LED's as Shown Below.

Don't know how to upload sketches to the linkit one board click here

Here is the code *****************************

/*Code Created By FunguyPro.

* Connect the leds to pins 2,3,4, and Gnd

* Change the delay in millisecons with int i */

inti=250;


voidsetup(){

pinMode(2,OUTPUT);

pinMode(3,OUTPUT);

pinMode(4,OUTPUT);

}

voidloop(){

digitalWrite(2,HIGH);

delay(i);

digitalWrite(2,LOW);

delay(i);

digitalWrite(3,HIGH);

delay(i);

digitalWrite(3,LOW);

delay(i);

digitalWrite(4,HIGH);

delay(i);

digitalWrite(4,LOW);

delay(i);

}

Step 2: Connect LED's and Run Code

Picture of Connect LED's and Run Code

The LED's Should be connected to pins 2,3,4, and GND

Step 3: Need Help?

Contact Me Here

Comments

DIY Hacks and How Tos (author)2015-10-18

Great intro project for LinkIt One's

About This Instructable

129views

4favorites

License:

Bio: I like to create new things! I'm very interested in IOT and just Internet Stuff. I am not responsible for any injury or deaths ... More »
Add instructable to: