LPD8806 LED Strip

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
reverendsmith
 
Posts: 3
Joined: Thu Apr 18, 2013 1:14 am

LPD8806 LED Strip

Post by reverendsmith »

Is there anyway to pass a HEX color code to the LPD8806 led strip and have it display that? I know it's only 128 bit color, is there away to convert that from hex?

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

Re: LPD8806 LED Strip

Post by adafruit_support_rick »

I'm not sure I understand the question. Are you referring to using a literal hexadecimal values in your function calls? You can certainly do that.

User avatar
reverendsmith
 
Posts: 3
Joined: Thu Apr 18, 2013 1:14 am

Re: LPD8806 LED Strip

Post by reverendsmith »

Sorry, Yes thats what I mean. I have tried, some colors work and some seem to not work.

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

Re: LPD8806 LED Strip

Post by adafruit_support_rick »

Well, 0x7F would be the largest color you could specify.
However, the LPD8806 wants the high order bit set, so your actual range is 0x80 .. 0xFF

If you want to pack colors into a 32-bit unsigned integer, the order is GRB, so solid green is 0x00FF0000, solid red is 0x0000FF00, and solid blue is 0x000000FF.

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

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