mrcodetastic / ESP32-HUB75-MatrixPanel-DMA

An Adafruit GFX Compatible Library for the ESP32, ESP32-S2, ESP32-S3 to drive HUB75 LED matrix panels using DMA for high refresh rates. Supports panel chaining.
MIT License
899 stars 201 forks source link

p4 64x32 1/8 problem. #618

Open NazarDoeH opened 3 months ago

NazarDoeH commented 3 months ago

Hi, I'm having issues with the 64x32 1/8 matrix. I've tried multiple libraries, but they don't work. This library works somewhat, but not without issues.

https://github.com/mrcodetastic/ESP32-HUB75-MatrixPanel-DMA/assets/57417144/3e49f051-18f6-4b22-b460-cf03fc75d19e

photo_2024-04-16_17-27-38 photo_2024-04-16_17-27-30

define PANEL_RES_X 32 // Number of pixels wide of each INDIVIDUAL panel module.

define PANEL_RES_Y 32 // Number of pixels tall of each INDIVIDUAL panel module.

define NUM_ROWS 1 // Number of rows of chained INDIVIDUAL PANELS

define NUM_COLS 1 // Number of INDIVIDUAL PANELS per ROW

board707 commented 3 months ago

For 1/8 matrix you need to setup the virtual panel with double width and half of height than your real dimensions, So for 64x32 try to setup

#define PANEL_RES_X 128 // Number of pixels wide of each INDIVIDUAL panel module.
#define PANEL_RES_Y 16 // Number of pixels tall of each INDIVIDUAL panel module.
NazarDoeH commented 3 months ago

https://github.com/mrcodetastic/ESP32-HUB75-MatrixPanel-DMA/assets/57417144/50276c68-a81e-4198-8cdc-c77130b46e13

That's for:

define PANEL_RES_X 128 // Number of pixels wide of each INDIVIDUAL panel module.

define PANEL_RES_Y 16 // Number of pixels tall of each INDIVIDUAL panel module.

board707 commented 3 months ago

It looks like you have a problem with connection of one of A B C pin

NazarDoeH commented 3 months ago

https://github.com/mrcodetastic/ESP32-HUB75-MatrixPanel-DMA/assets/57417144/b5bbb8e9-0987-47d0-b70e-fb62be710920

That's connected to the correct pins.

board707 commented 3 months ago

I've tried multiple libraries

Did you work with STM32 or RP2030 boards? Do you ready to test your panel with yet another library?

NazarDoeH commented 3 months ago

I worked with an STM32. But at the moment, I don't have any such boards. All I have are esp32 and esp8266. Also, I have already tried to run on some other libraries, such as PxMatrix, ESP32-P3RGB64x32MatrixPanel, and SmartMatrix.

board707 commented 3 months ago

if you come across a stm32 or rp2040 board, you can try DMD_STM32 library.

mrcodetastic commented 3 months ago

Also, I have already tried to run on some other libraries, such as PxMatrix, ESP32-P3RGB64x32MatrixPanel, and SmartMatrix.

Did it work with these?

board707 commented 3 months ago

The panel has ICDN2037 driver and SM5166 switch - nothing special. It should works with any of these libraries. The issue, probably, is in the multi-line coordinate pattern. Another option - the panel is just broken. However, in the first post we can see a picture with a full panel working - so I think panel is OK

board707 commented 3 months ago

@NazarDoeH Do you ready continue the tests? Could I ask you to run the code?

NazarDoeH commented 3 months ago

Hi @board707. I'm not at home now and won't be back until tomorrow. I'll write to you as soon as I can.

Godwinner1213 commented 1 month ago

Hello everyone, I have a problem with this library. I use four 32x32 1/8 panels, when I chain them into a single row (i.e. NUM_ROWS = 1 and NUM_COLS = 4) everything works perfectly!!! But as soon as I change the chaining configuration to NUM_ROWS = 2 and NUM_COLS =2, only the first row works correctly, the second does not display anything at all as if it were simply disconnected.

board707 commented 1 month ago

It is a known problem, look at the comments to issue #624 To resolve it, you need to edit a VirtualMatrix header file

Godwinner1213 commented 1 month ago

thank you very much @board707, I made the adjustments and everything works