Hi,
I am creating a big-scale project where I must hook up 10 neomatrix strips to a Raspberry Pi Pico.
I tried testing with a very small number of LEDS and still, the maximum number of strips it can take is 8.
Am I missing something here?
#include <Adafruit_NeoPixel.h>
#define NUM_LEDS 5
Adafruit_NeoPixel strips[] = {
Adafruit_NeoPixel(NUM_LEDS, 6, NEO_GRB + NEO_KHZ800),
Adafruit_NeoPixel(NUM_LEDS, 7, NEO_GRB + NEO_KHZ800),
Adafruit_NeoPixel(NUM_LEDS, 8, NEO_GRB + NEO_KHZ800),
Adafruit_NeoPixel(NUM_LEDS, 9, NEO_GRB + NEO_KHZ800),
Adafruit_NeoPixel(NUM_LEDS, 10, NEO_GRB + NEO_KHZ800),
Adafruit_NeoPixel(NUM_LEDS, 12, NEO_GRB + NEO_KHZ800),
Adafruit_NeoPixel(NUM_LEDS, 13, NEO_GRB + NEO_KHZ800),
Adafruit_NeoPixel(NUM_LEDS, 11, NEO_GRB + NEO_KHZ800),
//Adafruit_NeoPixel(NUM_LEDS, 14, NEO_GRB + NEO_KHZ800),
//Adafruit_NeoPixel(NUM_LEDS, 15, NEO_GRB + NEO_KHZ800),
};
#define NUMSTRIPS (sizeof(strips)/sizeof(strips[0]))
void setup() {
for (int i = 0; i < NUMSTRIPS; i++) {
strips[i].begin();
strips[i].show();
}
}
void loop(){
Serial.println(sizeof(strips));
Serial.println(sizeof(strips[0]));
delay(1);
}
This code works as intended with 8 strips. However, once I uncomment even one more, the Pi Pico locks up. I cannot figure out why this is happening, as the memory footprint does not exceed the 2MB that the Pi has. I even tried flooding the memory with more data (unrelated to the strips) and it worked.
Assistance on this issue is greatly appreciated.