control neopixel strips of different length
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Slayer667
- Posts: 1
- Joined: Mon Nov 24, 2014 11:15 am
control neopixel strips of different length
How do I control ws2812b strips of different lengths on a sound reactive project
- adafruit_support_bill
- Posts: 88097
- Joined: Sat Feb 07, 2009 10:11 am
Re: control neopixel strips of different length
You can define the length of each strip in your code.
Code: Select all
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_RGB Pixels are wired for RGB bitstream
// NEO_GRB Pixels are wired for GRB bitstream
// NEO_KHZ400 400 KHz bitstream (e.g. FLORA pixels)
// NEO_KHZ800 800 KHz bitstream (e.g. High Density LED strip)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, PIN, NEO_GRB + NEO_KHZ800);
Please be positive and constructive with your questions and comments.