I also seem to have trouble using the accelerometer simultaneously with the external strip.
I'm using an old-style Circuit Playground Classic, and the strip is on pin 12. It's powered by laptop USB, and the external strip stays lit with no trouble, just won't update. The system is soldered together so it's tricky to test other pins, but I can re-solder if necessary.
Code: Select all
#include <Adafruit_CircuitPlayground.h>
#include <Adafruit_NeoPixel.h>
#define PIN 12
#define N 32
Adafruit_NeoPixel estrip = Adafruit_NeoPixel(N, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
estrip.begin();
estrip.setBrightness(64);
CircuitPlayground.begin(); // if this is commented, the external strip works. if uncommented, on-board works and external doesn't.
}
int t=0;
void loop() {
for(int n=0; n<10; n++) {
CircuitPlayground.setPixelColor(n, Wheel(t%256));
}
int speed=10;
for(int i=0; i<N; i++) {
estrip.setPixelColor(i, Wheel(t%256));
}
estrip.show();
delay(100);
t++;
}