Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with P5 #1752

Open
ariemusbandi opened this issue Jan 5, 2025 · 1 comment
Open

Problem with P5 #1752

ariemusbandi opened this issue Jan 5, 2025 · 1 comment

Comments

@ariemusbandi
Copy link

ariemusbandi commented Jan 5, 2025

I tried to display the text Hello on the P5 panel with Raspberry Pi 3 Modeb B. The results were not as expected, here is the code I used

`
from rgbmatrix import RGBMatrix, RGBMatrixOptions, graphics

options = RGBMatrixOptions()
options.rows = 32 # Jumlah baris pada modul (misalnya 32 untuk P5/P10)
options.cols = 64 # Jumlah kolom pada modul (misalnya 64)
options.chain_length = 1 # Jumlah modul yang dirangkai secara horizontal
options.parallel = 1 # Jumlah jalur paralel
options.hardware_mapping = 'regular' # Konfigurasi tanpa Adafruit HAT
options.row_address_type = 0

matrix = RGBMatrix(options=options)

canvas = matrix.CreateFrameCanvas()
font = graphics.Font()
font.LoadFont("fonts/7x14B.bdf") # Gunakan font bawaan
text_color = graphics.Color(255, 100, 0) # Warna teks (merah)
text = "HELLO"

while True:
graphics.DrawText(canvas, font, 10, 10, text_color, text)
canvas = matrix.SwapOnVSync(canvas)
`

this the result looks
IMG_20250105_171410

IMG_20250105_170610

please help me

@board707
Copy link

Your problem is that you have an outdoor panel.
A "standard" 64x32 panels has a 16 scans, but outdoors has a less. Your panel has a 8 scans.

To work with that panel you need to reinvent some pixel mappings as noted in README
https://github.com/hzeller/rpi-rgb-led-matrix?tab=readme-ov-file#multiplexing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants