Matrix max7219 : Rotate font for vertical display
fred2nice opened this issue · 2 comments
fred2nice commented
thijstriemstra commented
@fred2nice use the rotate
parameter (in degrees):
device = max7219(serial, width=w, height=h, rotate=180)
fred2nice commented
Hi,
If I use rotate=2 ( 180°) without block_orientation=-90 the message is displayed on each block ( letters displayed correctly) , what I would like is a scrolling bottom to top, if I add block_orientation=-90 the scrolling is fine, but letters are in wrong orientation.
import time
from luma.core.interface.serial import spi, noop
from luma.led_matrix.device import max7219
from luma.core.legacy import show_message
from luma.core.legacy.font import proportional, CP437_FONT
serial = spi(port=0, device=0, gpio=noop())
device = max7219(serial,rotate=2,cascaded=4,block_orientation=-90)
show_message(device, "Hello !!!", fill="white", font=proportional(CP437_FONT), scroll_delay=0.05)
time.sleep(1)