Arduino KY-029 Yin Yi 2-color LED module 3MM

Buy the 37 in 1 kit at Amazon

Contents

Magic light cup module

5mm red and green LED (common cathode) module

Specifications

  • Color: Green + Red
  • Diameter: 5mm
  • Case Color: None
  • Package Type: Diffusion
  • Voltage (V): G :2.3-2 .6 V; R :1.9-2 .2 V
  • Using a current (MA): 20
  • Viewing angle: Wavelength (NM): 571 +625
  • Luminous intensity (MCD) :20-40; 60-80
  • Stent type: long-legged

Our products are widely used in electronic dictionary, PDA, MP3, headphones, digital cameras, VCD, DVD, car audio, communications, computers, Chargers, power amplifier, instrumentation, gifts, electronic toys and mobile phones, and many other fields.

Example Code

// Arduino test code:
int redpin = 11; // select the pin for the red LED
int bluepin = 10; // select the pin for the blueLED
int val;
 
void setup () {
  pinMode (redpin, OUTPUT);
  pinMode (bluepin, OUTPUT);
  Serial.begin (9600);
}
 
void loop () {
 for(val=255;val>0;val--) {
   analogWrite (11, val);
   analogWrite (10, 255 - val);
   delay(5);
 }
 for(val=255;val<255;val++) {
    analogWrite (11, val);
    analogWrite (10, 255 - val);
   delay(5);
 }
}