Ok I am using the StrandTest example on some 8mm Neo Pixel Through-Hole Leds.
When I just change the number of leds in the line everything works:
Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, PIN, NEO_GRB + NEO_KHZ800);
However when I try to chage the NEO_GRB to NEO_RGB I get this error:
Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, PIN, NEO_RGB + NEO_KHZ800);
error: 'NEO_RGB' was not declared in this scope
What I have read says with the 8mm Diffused Through Hole LEDs you are supposed to use NEO_RGB.
RGB vs GRB Please help
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: RGB vs GRB Please help
Is this with a Trinket or Gemma board? If so, download the latest NeoPixel library. Earlier code didn't support RGB pixels on these boards (trying to save space).
- sgttoe
- Posts: 8
- Joined: Tue Sep 23, 2014 11:58 am
Re: RGB vs GRB Please help
Yes, it is with a trinket. Thanks I'll read the tutorial on downloading the library and update it.
Please be positive and constructive with your questions and comments.