|
|||||||||||||||||
DESCRIPTION
( red / blue / green ) strength in order to achieve full-color mixing effect.
FEATURES
Using 5050 full color LED
RGB trichromatic limiting resistor to prevent burnout
Through the PWM adjusting three primary colors can be mixed to obtain different colors
With a variety of single-chip interface
Operating voltage: 5V
LED drive mode: common cathode
Driver 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);
|
|||||||||
회사명 : 원테크
| 사업자등록번호 : 671-34-00660 [사업자정보확인]
| 주소 : 서울특별시 구로구 경인로53길 15 (중앙유통단지) 다동 3123호 통신판매업 신고 : 제 2019-서울구로-1690호 | 연락처 : 02-6679-8533 | FAX : 02-6679-8532 | 개인정보보호 책임자 : 한혜정 | 대표자 : 한혜정 contact : kkseo2@naver.com for more information |
|||||||||