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.69k stars 1.17k forks source link

Using LINSN LED #482

Closed GOBish closed 6 years ago

GOBish commented 6 years ago

Hi,

The code works great on most LED matrices I have, but I recently got this one so I could do an outdoor installation:

http://www.ledcontrolcard.com/outdoor-led-module-c-49/latest-outdoor-p5mm-18scan-64x32dots-320mmx160mm-smd-led-module-p-578.html

and the formatting is all weird - jumbled letters, line breaks, etc.

Any ideas on how to setup the code for this screen? I am using an adafruit hat.

I've loked at post 437 (https://github.com/hzeller/rpi-rgb-led-matrix/issues/437) about using a transform, and some of the other similar posts (#311) as well, but can't seem to figure it out. Thanks!

GOBish commented 6 years ago

The board is a P5 outdoor module, 32x64 made up of two 32x32 panels ribbon-ed together. I think it is 1:8 scan. They seem to be set up differently, though, in that each 32x32 has some kind of routing in it. I tried the -L option (for U shape) for both the whole 32x64 board and for just one of the 32x32 panels, but that didn't help.

angelogoncalve commented 6 years ago

Try use one panel 32x32 1:8 scan rate. The transformer for your case is:

void P5outdoorTransformer::TransformCanvas::SetPixel(int x, int y, uint8_t red, uint8_t green, uint8_t blue) { int odd8_block =(((y % 16) / 8) +1) % 2; //to know if the pixel is in an odd 8pixel row int num_mod_x = (x / 32); //num of daisy chainned modules int new_x = (x + 32(num_mod_x + odd8_block)); int new_y = (y % 8) + 8 ( y / 16); delegatee_->SetPixel(new_x, new_y, red, green, blue); }

Use for one P5outdoorTransformer with: examples-api-use/demo -D0 --led-rows=16 --led-chain=2 --led-parallel=1

GOBish commented 6 years ago

Thanks very much for the advice. I'll try it out.

GOBish commented 6 years ago

This issue has been solved in #311:

Saurav-K-Aryal commented 5 years ago

@GOBish I have a Linsn LED panel as well. It's a quirky P2.5 screen with 1/20 scan. If you have any advice please drop some comments on https://github.com/hzeller/rpi-rgb-led-matrix/issues/738

Thank you!