LPD8806 LED Strip
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- reverendsmith
- Posts: 3
- Joined: Thu Apr 18, 2013 1:14 am
LPD8806 LED Strip
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?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: LPD8806 LED Strip
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.
- reverendsmith
- Posts: 3
- Joined: Thu Apr 18, 2013 1:14 am
Re: LPD8806 LED Strip
Sorry, Yes thats what I mean. I have tried, some colors work and some seem to not work.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: LPD8806 LED Strip
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.
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.
Please be positive and constructive with your questions and comments.