hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.63k stars 1.15k forks source link

Color Mixed #267

Closed akardes5 closed 7 years ago

akardes5 commented 7 years ago

Hi,

The project is very nice. I did the same. But the colors are mixed.

Red -> Blue Green -> Red Blue -> Green

For example; A red color image appears blue. How can I fix?

Thank you.

hzeller commented 7 years ago

You probably have a panel that has swapped inputs. Just wire up the R1, G1, B1 and R2, G2, B2 differently so that it matches your panel.

akardes5 commented 7 years ago

Do you know the Adafruit Hub75 R1 G1 B1?

Thank you.

hzeller commented 7 years ago

if you are using the HAT, then better remap it in software. look in lib/hardware-mapping.c and change the p0_r1 etc to point to the gpio it should be.

akardes5 commented 7 years ago

I think this will solve the problem. Thank you so much.

prunella2017 commented 7 years ago

@akardes5 , hey, did the hub75 work for you? Thanks!.

hzeller commented 7 years ago

There is now an option --led-rgb-sequence that allows to choose the order on the command line without changes to the code. (added in https://github.com/hzeller/rpi-rgb-led-matrix/commit/efe8a77f1958c342f97a3ac7f7d0601e02c30b6a )