RGB vs GRB Please help

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
sgttoe
 
Posts: 8
Joined: Tue Sep 23, 2014 11:58 am

RGB vs GRB Please help

Post by sgttoe »

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.

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

Re: RGB vs GRB Please help

Post by pburgess »

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).

User avatar
sgttoe
 
Posts: 8
Joined: Tue Sep 23, 2014 11:58 am

Re: RGB vs GRB Please help

Post by sgttoe »

Yes, it is with a trinket. Thanks I'll read the tutorial on downloading the library and update it.

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

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