Neopixel v neomatrix?

Hi all not sure where to put this question so I’ve dumped it in general. Can you declare a string of neopixels as a matrix and a …string of neopixels in the same code? if so how?

so my matrix declaration is

Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(15,10,1,1, PIXEL_PIN,
  NEO_TILE_TOP   + NEO_TILE_LEFT   + NEO_TILE_ROWS   + NEO_TILE_PROGRESSIVE +
  NEO_MATRIX_BOTTOM + NEO_MATRIX_RIGHT + NEO_MATRIX_COLUMNS + NEO_MATRIX_ZIGZAG,
  PIXEL_TYPE);

Then I proceed to scroll some text through it.

after I have scrolled the text (which is the time) I was wondering if I could make it throw a rainbow like the “standard” neopixel library example - and then go back to a matrix for more time updates.

I note that this type of thing is done before void setup()

Adafruit_NeoPixel strip = Adafruit_NeoPixel(3, PIN, WS2812B);

Is there any reason this can not go into void loop??

Thanks :smile: