Go Down

Topic: Project 1:keyestudio LED Light Module  (Read 49 times) previous topic - next topic

keyestudio

Jun 08, 2015, 11:14 am Last Edit: Jun 08, 2015, 11:22 am by keyestudio
http://g02.a.alicdn.com/kf/HTB1.Bp8IXXXXXbjXFXXq6xXFXXXe/2015-New-Keyestudio-Digital-White-LED-Light-Module-.jpg
Introduction:
This LED light module has a shiny color, ideal for Arduino starters. It can be easily connected to IO/Sensor shield.
Specification:
Type: Digital
PH2.54 socket
White LED light module
Enables interaction with light-related works
Size: 30*20mm
Weight: 3g
Connection Diagram:

Sample Code:
int led = 3;
void setup()
{
pinMode(led, OUTPUT);     //Set Pin3 as output
}
void loop()
{
        digitalWrite(led, HIGH);   //Turn on led
        delay(2000);
        digitalWrite(led, LOW);    //Turn off led
        delay(2000);
}

Go Up