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

RGB LED Matrix HAT #345

Closed cc96cc closed 7 years ago

cc96cc commented 7 years ago

I've been having a lot of problems with the matrix HAT. Everything seems soldered and connected appropriately and I tried the suggestions on the readme yet when I run any of the tests the matrix gives a random display. When I play/fiddle with the IDC connection to the matrix or the power/gnd connection the matrix changes its display randomly. I've also tried this matrix/hat combo on both a Pi 3 and Pi 2 yielding the same results.

hzeller commented 7 years ago

As always when reporting an issue it is important to include the details.

what HAT are you talking about? There are several hardware adapters Pi -> Matrix out there. What flags are you giving the binary? How many displays chained? what size display?

cc96cc commented 7 years ago

Thanks for the help. RGB LED Matrix Adafruit HAT the flag that i am giving is --led-gpio-mapping=adafruit-hat (i also tried most/all the other flags I am using one 32 x 32 display scan rate = 1:16 I also tried all of the recommended troubleshooting tips

hzeller commented 7 years ago

Ok, so you made sure to disable 1 wire communication which seems to be enabled on some Raspbian (though if you followed the tips you have Raspbian lite which did not exhibit this configuration issue last time I checked).

If you still get random output, maybe you got a display that has a differnent interface ? How does the connector look like ? Usually, there is some printing about the signals it expects.

cc96cc commented 7 years ago

Fixed it by not using the hats hub75 interface, will try with the hat again soon tho.

hzeller commented 7 years ago

There is an self-explanatory API and a C++ example already. Even Python examples.

What is the question that these don't answer yet ?

cc96cc commented 7 years ago

when i try to rewrite the c++ example it seems i can never load the font in correctly

hzeller commented 7 years ago

Can you give a command line you are using ?

cc96cc commented 7 years ago

not command line, just trying to use DrawText correctly rgb_matrix::DrawText(matrix, font, x, y + font.baseline(), color, &bg_color, line);

hzeller commented 7 years ago

You said you have trouble loading the font, but you did not show how you load the font.

cc96cc commented 7 years ago

nevermind i got it

hzeller commented 7 years ago

You really need to provide the necessary information here. Does it return false there ? Or does it continue, but the font is not usable ? Is the file readable ? If you need help, you need to provide everyone the relevant information to be able to help.