Digital_piranha_LED_light_module__SKU__DFR0031_-DFRobot

Introduction

Piranha LED light module, is a special light module designed for easy plug and play Arduino light projects. Use this smiple, but useful, LED to light up your project!

When the LED light module is connected to Arduino, the digital pin (LOW on, HIGH off) is used to control it. The brightness of LED can be controller via PWM output.

Specifications

Pin Definition

LED module pin definition :

Input

Power

GND

digital input module

Connection Diagram

Digital module connection diagram

Sample Code

///Arduino Sample Code for DFR0021
///www.DFRobot.com
///Last modified on 16th September 2010

int led = 3;

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

More Documents