NeoPixel 8 not working when change # pixels

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
johnwargo
 
Posts: 55
Joined: Mon Jan 28, 2013 9:21 am

NeoPixel 8 not working when change # pixels

Post by johnwargo »

I just hooked up a NeoPixel 8 strip to my Arduino Micro. When I run the strand test, everything works great, but when I change the number of pixels from 60 to 8:

Code: Select all

Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, PIN);
to

Code: Select all

Adafruit_NeoPixel strip = Adafruit_NeoPixel(8, PIN);
Nothing works. If I change it back to 60, works like a champ. What am I doing wrong?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: NeoPixel 8 not working when change # pixels

Post by adafruit_support_rick »

Have you modified the strandtest at all? If so, can you post the entire sketch?

User avatar
johnwargo
 
Posts: 55
Joined: Mon Jan 28, 2013 9:21 am

Re: NeoPixel 8 not working when change # pixels

Post by johnwargo »

No, not at all - hooked up the =, - and digital in wires and only made that single line change to the code. Nothing more, otherwise it's the out of the box strand test app.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: NeoPixel 8 not working when change # pixels

Post by pburgess »

Tested on Arduino Micro, I'm not able to reproduce this.

Any other details you can provide might be helpful. Photos of wiring, etc.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”