| Electronic Components Datasheet Search |
|
DFR0274 Datasheet(PDF) 3 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0274 Datasheet(HTML) 3 Page - DFROBOT |
|
3 / 12 page ![]() 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 { |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| 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 |