• -40%

5 db 10 mm-es színes RGB LED modul 140C5 elektronikus építőelem, alkalmas arduinos barkács kezdőkészlethez

5 db 10 mm-es színes RGB LED modul 140C5 elektronikus építőelem, alkalmas arduinos barkács kezdőkészlethez

124 Ft 40% megtakarítás
207 Ft
Nincs adó
Product parameters:
Size: 25*21mm
Weight: 4g
Color: full color red, green and blue three primary colors
Brightness: highlight
Voltage: 5V
Input: digital level
Interface: Arduino 4P interface
Platform: development board, single-chip microcomputer
Product Features:
The principle of three primary colors displays multiple colors
Realize full-color display through PWM port control
PWM interface can be directly driven

Test 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);
}
Mennyiség

 

Biztonsági feltételek

 

Szállításii feltételek

 

Visszaküldési feltételek

5 db 10 mm-es színes RGB LED modul 140C5 elektronikus építőelem, alkalmas arduinos barkács kezdőkészlethez
5PCS 10mm Full Color RGB LED Module 140C5 Electronic Building Block, Suitable for arduinos DIY Starter Kit
Product parameters:
Size: 25*21mm
Weight: 4g
Color: full color red, green and blue three primary colors
Brightness: highlight
Voltage: 5V
Input: digital level
Interface: Arduino 4P interface
Platform: development board, single-chip microcomputer
Product Features:
The principle of three primary colors displays multiple colors
Realize full-color display through PWM port control
PWM interface can be directly driven

Test 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);
}
1005003494335150 - pngto
1005003494335150

Hasonló kategóriák mint 16 :

Reviews

Write your review

5 db 10 mm-es színes RGB LED modul 140C5 elektronikus építőelem, alkalmas arduinos barkács kezdőkészlethez

Product parameters:
Size: 25*21mm
Weight: 4g
Color: full color red, green and blue three primary colors
Brightness: highlight
Voltage: 5V
Input: digital level
Interface: Arduino 4P interface
Platform: development board, single-chip microcomputer
Product Features:
The principle of three primary colors displays multiple colors
Realize full-color display through PWM port control
PWM interface can be directly driven

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

Write your review