Replies: 2 comments
-
Thanks for the detailed explanation. I finally figured out which connection you meant. Unfortunately, I doubt that I will add your class to the main library - since I do not have RG matrices for tests |
Beta Was this translation helpful? Give feedback.
-
It could be interesting. For RG the 4 outputs are enough for me - because this way it is compatible with my old Atmel card, but for RGB a 2nd output would be great. The problem is that the RP2040 has not too many pins and I need some for other functions also.
Basically I copied DMD_Monochrome_Parallel and changed what needed. You are right it might be easier to just inherit from it, but in this way it become independent from it. |
Beta Was this translation helpful? Give feedback.
-
Hi Everybody,
I would like to share some new features I addad to the library for my own purposes, but they might be useful for others also. The main goal I wanted to achive is to be able to use HUB12 RG panels (previously I used them with an Atmel microcontroller) and use RGB panels also with the same new driver card, based on the RP2040 microcontroller.
Based on the monochrome_parallel part of the library I wrote my RG_parallel part, which can outputs to 4 rows of HUB12 RG cards parallel.
If we choose the outputs properly and if 1/16 scanning for RGB is enough, then we can use the same pins for RGB also (not the same time)
And to be able to choose the place of the first RGB card I also extended the library with a new connect scheme -CONNECT_TOPDOWN:
And here is the connection diagramm of the output connectors:
Here is an example of the DMD init from the main program:
I've added two new constants to the matrix definition: modWidth and modHeight which are the sizes in pixels of the used modules. With the aid of them only DISPLAYS_ACROSS and DISPLAYS_DOWN should be set at the beginning and if the matrix type is set them the matrix size can be easily calculated. (Maybe this can be done from the original code also, but I couldn't find how)
Limitations:
-The work is still in progress, so some parts may not work as expected.
-I've left the STM parts in the code, but this part probably broken as I only dealt with the RP2040.
-The parallel RG part works with 1 bit color depth only. (as the original monochrome_parallel)
-The new CONNECT_TOPDOWN scheme is only implemented in the new RGB matrix types that I've added.
And here are the code: (it is based on VERSION 0.9.4 of the original library)
DMD_RG_Parallel.zip
Beta Was this translation helpful? Give feedback.
All reactions