i've also had problems with the first pixel, sometimes just adding a pulldown resistor to the pin fixed it. I'd have to check my most recent code, but i think i just added a few bytes with 0's to "flush" the neopixel signal line and that also fixed it.RogerClark wrote:Thanks
I've modified the maple port of the Adafruit lib,and it now works OK.
I have also now tried to use SPI, but I'm having problems with the first pixel
If you have a logic analyser, have a look at the signal. Ideally when done transmitting, the dataline stays low (as the neopixels require), but it sometimes takes a bit of tinkering to get the spi port to actually do that. If not, you're starting a new byte, and then your first pixel will be getting that junk extra byte