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

Chained Displays in Python #206

Closed ehzlxa1276 closed 8 years ago

ehzlxa1276 commented 8 years ago

Hi,

I was trying some of the python demos on my 32x64 display (internally chained), but I only see the scrolling text (and other graphics) duplicated on both halves of the display. I tried setting the "-c" argument to 2, but the issue remains. The exact line I run is "sudo python runtext.py -c 2".

In trying to troubleshoot, I made my own script to:

myMatrix = RGBMatrix(32, 2, 1); print([myMatrix.width, myMatrix.height])

but no matter what I input into RGBMatrix, I only ever see a [32, 32] in my print statement. Am I doing something crazy here?

Thanks

hzeller commented 8 years ago

This should be working, but maybe the generated Python adapter code has trouble with the recent changes ? There as a constructor added in the c++ code, maybe that threw off code that looked at particular positions in the binary ?

First step: make sure recompile the python binding from scratch, so that possible binary ABI incompatibilities are excluded.

I am out of town and don't have the network to install python to test myself, but maybe @Saij can have a look ?

hzeller commented 8 years ago

Uhm, sorry, looks like I messed up the old constructor. Can you do a 'make clean' and a fresh compile and install of the Python binding to see if things work again ? Sorry about that.

ehzlxa1276 commented 8 years ago

Ahh awesome! It works now! Thanks for the quick support, good work!