数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

DFR0274 数据表(PDF) 3 Page - DFROBOT

部件名 DFR0274
功能描述  RGB LED Strip Driver Shield SKU:DFR0274
PDF  12 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  DFROBOT [DFROBOT]
网页  https://www.dfrobot.com/
标志 DFROBOT - DFROBOT

DFR0274 数据表(HTML) 3 Page - DFROBOT

  DFR0274 Datasheet HTML 1Page - DFROBOT DFR0274 Datasheet HTML 2Page - DFROBOT DFR0274 Datasheet HTML 3Page - DFROBOT DFR0274 Datasheet HTML 4Page - DFROBOT DFR0274 Datasheet HTML 5Page - DFROBOT DFR0274 Datasheet HTML 6Page - DFROBOT DFR0274 Datasheet HTML 7Page - DFROBOT DFR0274 Datasheet HTML 8Page - DFROBOT DFR0274 Datasheet HTML 9Page - DFROBOT Next Button
Zoom Inzoom in Zoom Outzoom out
 3 / 12 page
background image
Sample Code
LED Strip driving code
Here's the basic code for controlling the color of the RGB LED strip.
int RedPin = 10;
//Arduino driving pin for Red
int GreenPin = 11;
//Arduino driving pin for Green
int BluePin = 9;
//Arduino driving pin for Blue
void setColor(int red, int green, int blue)
{
analogWrite(RedPin, red);
analogWrite(GreenPin, green);
analogWrite(BluePin, blue);
}
void setup()
{
pinMode(RedPin, OUTPUT);
//Init Arduino driving pins
pinMode(GreenPin, OUTPUT);
pinMode(BluePin, OUTPUT);
Serial.begin(9600);
}
void loop()
{
for (int i=0;i<255;i++)
//Changing Red brightness
{
setColor(i, 0, 0);
delay (10);
}
delay(2000);
for (int i=0;i<255;i++)
//Changing Green brightness
{



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com