rm-hull / luma.led_matrix

Python module to drive LED Matrices & 7-segment displays (MAX7219) and RGB NeoPixels (WS2812 / APA102)
https://luma-led-matrix.readthedocs.io
MIT License
523 stars 157 forks source link

Text scrolling throught 4 8x8 (MAX7219) #166

Closed GYJohn closed 6 years ago

GYJohn commented 6 years ago

Type of Raspberry Pi

Got a RPi3.

Linux Kernel version

Linux raspberrypi 4.9.80

Actual behaviour & Expected behaviour

At the moment i execute
python matrix_demo.py --rotate 1 the text is scrolling on all 8x8 separately and not on my 4x 8x8 MAX7219 as a "cluster".

I am rly new to the MAX7219 topic, so please be kind 🔢

Thank you!

GYJohn commented 6 years ago

Still need help :/

rm-hull commented 6 years ago

If you run python matrix_demo.py -h it will show the options. If you have a 4x cluster, try adding -n 4.

Also, have a look at the documentation, daisy-chaining in particular: https://luma-led-matrix.readthedocs.io/en/latest/python-usage.html#daisy-chaining

GYJohn commented 6 years ago

@rm-hull Thanks for ur answer. If i try: python matrix_demo.py -n 4 --rotate 1 It scrolls on only one 8x8 :(

rm-hull commented 6 years ago

What happens if you take off the --rotate 1 flag? How have you wired up your 4x "cluster" ? Any pics of you board / wiring (you can drag/drop images to the github issues text field to upload them), or links to where you bought from would be useful

GYJohn commented 6 years ago

I bought this one: https://www.amazon.de/gp/product/B079HVW652/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

I can make a video later if this helps

Looks bit like this, but not rly sure. I will test it. 1

EDIT: I tried `import time

from luma.core.virtual import viewport from luma.core.interface.serial import spi, noop from luma.core.render import canvas from luma.led_matrix.device import max7219 from luma.core.virtual import sevensegment

serial = spi(port=0, device=0, gpio=noop()) device = max7219(serial, cascaded=4, block_orientation=-90)

seg = sevensegment(device) seg.text = "Hello world"`

Its only on one 8x8

rm-hull commented 6 years ago

Looking at the video it is exactly the block orientation issue. Try running the demo with python matrix_demo.py -n 4 --block-orientation=90 ... if that doesn't look right, try -90 instead

GYJohn commented 6 years ago

You are right....... Damn it. Thank you!!