5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



Arduino Mega 2560 Project 2:Digital white LED module

Posted by Fiona Su on

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

thumb

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);
}

Project List

Buy it here>>Sensor Starter Kit For Arduino Mega 2560

0 comments

Leave a comment

Please note, comments must be approved before they are published