| Electronic Components Datasheet Search |
|
DFR0605 Datasheet(PDF) 5 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0605 Datasheet(HTML) 5 Page - DFROBOT |
|
5 / 9 page ![]() #include <Adafruit_NeoPixel.h> #define PIN_LED 3 // Control signal, connect to DI of the LED #define NUM_LED 1 // Number of LEDs in a strip // Custom colour1: Yellow #define RED_VAL_1 255 #define GREEN_VAL_1 255 #define BLUE_VAL_1 0 // Custom colour2: Purple #define RED_VAL_2 255 #define GREEN_VAL_2 0 #define BLUE_VAL_2 255 // Custom colour3: Cyan #define RED_VAL_3 0 #define GREEN_VAL_3 255 #define BLUE_VAL_3 255 // Custom colour4: White #define RED_VAL_4 255 #define GREEN_VAL_4 255 #define BLUE_VAL_4 255 Adafruit_NeoPixel RGB_Strip = Adafruit_NeoPixel(NUM_LED, PIN_LED, NEO_GRB + NEO_KHZ800); void setup() { RGB_Strip.begin(); RGB_Strip.show(); RGB_Strip.setBrightness(128); // Set brightness, 0‐255 (darkest ‐ brightest) } void loop() { colorWipe(RGB_Strip.Color(255, 0, 0), 1000); // Red colorWipe(RGB_Strip.Color(0, 255, 0), 1000); // Green colorWipe(RGB_Strip.Color(0, 0, 255), 1000); // Blue colorWipe(RGB_Strip.Color(RED_VAL_1, GREEN_VAL_1, BLUE_VAL_1), 1000); // Custom colour1: Yellow colorWipe(RGB_Strip.Color(RED_VAL_2, GREEN_VAL_2, BLUE_VAL_2), 1000); // Custom colour2: Purple colorWipe(RGB_Strip.Color(RED_VAL_3, GREEN_VAL_3, BLUE_VAL_3), 1000); // Custom colour3: Cyan colorWipe(RGB_Strip.Color(RED_VAL_4, GREEN_VAL_4, BLUE_VAL_4), 1000); // Custom colour4: White rainbow(20); // Rainbow } // Fill the dots one after the other with a color |
|
|
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 |