adafruit / Adafruit_Protomatter

RGB matrix library for Arduino
57 stars 20 forks source link

hi now some P4 panel comes with 80x40 led matrix with 1/20 scan ...and unfortunately i have one ..how to run them ..i have hooked and found only 32 out of 40 rows are working #49

Closed ravigyanvihar closed 1 year ago

ravigyanvihar commented 2 years ago

Thank you for opening an issue on an Adafruit Arduino library repository. To improve the speed of resolution please review the following guidelines and common troubleshooting steps below before creating the issue:

If you're sure this issue is a defect in the code and checked the steps above please fill in the following fields to provide enough troubleshooting information. You may delete the guideline and text above to just leave the following details:

board707 commented 2 years ago

Hi @ravigyanvihar Few month ago I have modified the old variant of the library - Adafruit RGB-matrix-Panel - to add support for 80x40 RGB matrices. But the code was only tested on Arduino Mega. My fork of RGB-matrix-Panel you can see at https://github.com/board707/RGB-matrix-Panel/tree/matrix80x40 Make sure to select the "matrix80x40" branch before downloading. For usage see the example Mega_matrix_80x40.ino"

If you interesting to use your matrix with Arduino STM32 boards - I have a custom library for RGB and Monochrome DMD panels which supported many kinds of matrices, including RGB 80x40 20 scan. See the link DMD_STM32 arduino library

priya2212 commented 1 year ago

@board707 , Thank you for providing the library for matrix80x40. This really eases our work. I am using 80x40 P4 led. I am not sure about scan rate as I got it from local vendor and they don't have any reference for the same. I am assuming the scan rate is 1:10. However, when I am running the code, and drawing the pixel at x=0, y=0, getting the pixel output at x=0,y=0 and x=0, y=10. Same is occurring with Text. Would be great if you can give me your valuable inputs. IMG_3320 IMG_3322

board707 commented 1 year ago

HI You wrote:

I am assuming the scan rate is 1:10.

Sorry, but my code will work with 80x40 scan20 panels only. Your matrix is a tricky case. A standard 80x40 matrix has 1:20 scans, and you have 1.10. This means that the LEDs in your matrix are connected in a non-standard way. I can try to run your matrix, but only using STM32 or RP2040 boards, using my library DMD_STM32

ravigyanvihar commented 1 year ago

i changed number of lines and solved it