rpi-rgb-led-matrix icon indicating copy to clipboard operation
rpi-rgb-led-matrix copied to clipboard

Problem with P5

Open ariemusbandi opened this issue 9 months ago • 1 comments

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

ariemusbandi avatar Jan 05 '25 10:01 ariemusbandi