Browse Collections
RGB Full Color LED Module Electronic Building Block 5V Compatible With Three Color 10mm High brightness
Home  ⇨  RGB Full Color LED Module Electronic Building Block 5V Compatible With Three Color 10mm High brightness

RGB Full Color LED Module Electronic Building Block 5V Compatible With Three Color 10mm High brightness

$23.30

500 in stock

SKU: 3256809318932783 Category:

Description

  • Brand Name: NoEnName_Null
  • Voltage: 自定义编辑
  • Origin: Mainland China
  • High-concerned chemical: None
  • Certification: None

I. Product parameters:


Size: 25*21mm


Weight: 4g


Color: Full color red, green and blue


Brightness: Highlight


Voltage: 5V


Input: Digital level


Interface: Arduino 4P interface


Platform: development board, MCU




Ii. Product features:


The principle of three primary colors displays multiple colors


Full color display is realized by PWM port control


The PWM interface can be driven directly




Test the code:


int redpin = 11; //select the pin for the red LED


int bluepin =10; // select the pin for the blue LED


int greenpin =9; // select the pin for the green LED




int val;




void setup() {


pinMode(redpin, OUTPUT);


pinMode(bluepin, OUTPUT);


pinMode(greenpin, OUTPUT);


Serial.begin(9600);


}




void loop()


{


for(val=255; val>0; val--)


{


analogWrite(11, val);


analogWrite(10, 255-val);


analogWrite(9, 128-val);


delay(1);


}


for(val=0; val<255; val++)


{


analogWrite(11, val);


analogWrite(10, 255-val);


analogWrite(9, 128-val);


delay(1);


}


Serial.println(val, DEC);


}

Please select your product
0