gkaindl / ambi-tv

a flexible ambilight clone for embedded linux
296 stars 85 forks source link

Green and blue colors are inverted. #14

Closed toonsdu13 closed 10 years ago

toonsdu13 commented 10 years ago

Everything is working except the fact that the green and blue color are inverted. When I display a blue image the LED turn green and when I display a green image the LED turn blue. Please help.

sn00zerman commented 10 years ago

It seems like we have the same led strips. You need to modify the lpd8806 sink c-file, to change the order of the green and blue output and recompile. If you don't know how to do that, I can always give you my binary file.

Good luck, Kris

toonsdu13 notifications@github.comschreef:

Everything is working except the fact that the green and blue color are inverted. When I display a blue image the LED turn green and when I display a green image the LED turn blue. Please help.


Reply to this email directly or view it on GitHub: https://github.com/gkaindl/ambi-tv/issues/14

toonsdu13 commented 10 years ago

Hi Kris,

Thank you for your help. I will appreciate if you can share your binary file with me as I don't know how to modify and recompile the lpd8806 sink c-file. Thank you,

Yan.

toonsdu13 commented 10 years ago

I figured it out. Thanks.

andyclarke commented 10 years ago

These are also swapped on my LED strip. Perhaps this should be added as an option in the config file.

gkaindl commented 10 years ago

@andyclarke yes, I will add this as an option soon – apparently, there are lots of different strips out there with the LPD8806 chipset, but they seem to have the LEDs connected to different driver pins at random...

duenorh commented 10 years ago

Hey everyone. I need help with how to reverse the green and blue sync.

andyclarke commented 10 years ago

I had this problem and changed the "b" and "g" around on lines 217 and 219 in src/components/lpd8806-spidev-sink.c Recompile (make) and it seemed to do the trick.

I now just need to sort out my gamma levels...

duenorh commented 10 years ago

Thank you. That worked like a charm.

I've got bigger problems then gamma levels. Seems like my soldering needs to be redone.