These are chat archives for Makuna/NeoPixelBus

29th
Jul 2015
Michael Miller
@Makuna
Jul 29 2015 05:12
@sticilface a memory issue was fixed and put into the staging branchearlier today, you might want to try that.
sticilface
@sticilface
Jul 29 2015 08:09
already using it. I'm doing some fairly extensive bug tracking as i've got a 'basic' sketch that reproduces it.
@Makuna I posted earlier that I can't get the strip to work during the setup function. I just get white flashes, this is still happening. Have you tried setting colours in the setup function?
Michael Miller
@Makuna
Jul 29 2015 15:21
Other than a one time clear to black, no I havent. Do you have a sample ino that demonstrates the problem and I will take a look.
@sticilface how many pixels are you using, just so I can try to get closer to your scenario
sticilface
@sticilface
Jul 29 2015 15:24
It didn't matter. even one does it..
here is the sketch

#include <NeoPixelBus.h> // NeoPixelAnimator branch

#define pixelCount 7 // Strip has 30 NeoPixels
#define pixelPin 2 // Strip is attached to GPIO2 on ESP-01

NeoPixelBus strip = NeoPixelBus(pixelCount, pixelPin);

void setup() {

    strip.Begin();
    strip.Show();

   // delay(100);

for (int i = 0; i < 5; i++) {
  strip.ClearTo(RgbColor(0,0,0));
  strip.Show();
  delay(100);
  strip.ClearTo(RgbColor(0,0,255));
  strip.Show();
  delay(100); 
}


}

void loop() {

  delay(10);
  strip.ClearTo(RgbColor(0,0,0));
  strip.Show();
  delay(500);
  strip.ClearTo(RgbColor(0,255,0));
  strip.Show();
  delay(500); 
}
The LEDs should flash blue 5 times (interval 100ms) then blink green (interval 500ms)... but they don't... i get a white flash... then the green blinking...
ie... they run in the loop but not in setup
sticilface
@sticilface
Jul 29 2015 16:49
@Makuna This all came about when testing the Hue emulator... which did not work correctly for me.. took a long time to work out what was going on...