Multiple WS2812B (Neopixel) strips, Different Lengths


good evening all,

  pursuing quite rigorous , code-intensive project right now, may expand later should decide utilize unused pins.  setting 5 mirrors, 2 pairs of same size (small, medium), , single large mirror, 25(x2)/35(x2)/48(x1) ws2812b pixels on each mirror(small[x2]/medium[x2]/large[x1]).  have made many attempts @ manipulating different examples multiple strips , "array-within-array" (fastled) code tactics tackle this, alas, @ loss.
  problem code examples there define number of pixels strips same variable (and, therefore, same number), cannot do.  being have 3 lengths total, need define 3 separate lengths each size mirror , setup 3 different types of mirrors, 2 of array-within-array style due duplicate sizes?
  many help, if you're interested in purpose serve, they're decoration going in room fill empty wall.  each mirror have pir sensor on either side of , when pass animate according locations broken.  default mode of display have rtc push time in form of clock largest mirror (since it's 48 leds, display ~5 minute increment time closest to. modes changeable via bt connection on phone.  future possible inclusions: ir receiver/transmitter pair controlling in-room electronics/appliances (tv, cable, in-wall ac), wiring 350mhz controller 5 pins controlling fan/light.
  cheers :)
  anselmo c.

too information.
you have 3 different lengths in string.
there's numpixel variable (adafruit library) is the number of pixels in string.


pixels.setpixelcolor(whichpixel, pixels.color(0,0,0)); // dark
"whichpixel" can variable or 'magic number' (a number not declared variable) position write to.

pixels.show();
makes happen.


Arduino Forum > Using Arduino > LEDs and Multiplexing > Multiple WS2812B (Neopixel) strips, Different Lengths


arduino

Comments