hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.72k stars 1.18k forks source link

Led panel P5-6432-3528-16S-B4 with ICN2038s chip #1207

Open maksun opened 3 years ago

maksun commented 3 years ago

Hello,

I just would like to know if someone here managed to make this panel working? I'm using the active board from electrodragon, I'm trying to help a friend so I did some research and read the following:

"Check the controller chip that install the LED panel, if are ICN2038S or FM6126, those are not compatible Smartmatrix because these chips require three clock pulses by Latch."

I will tell my friend to try the led panel type FM6126 in case of... Any advice is welcome ;)

Thank you.

maksun commented 3 years ago

Hello,

Looks like this chipset is similar to the FM6126A as I managed to make it working with the "--led-panel-type=FM6126A" parameter. FYI, it was an ABCD panel style.

Regards,

alsaleem00 commented 3 years ago

Hello I am able to display something on matrix (ICN2038S). but refresh is bad. If anyone is interested I can post more here

wrldtvlr commented 3 years ago

I have a P2 panel with this same chip. While I can display something on the panel, the addressing isn't right I would be interested in knowing more about what you've been able to do.

alsaleem00 commented 3 years ago

most P2's have different row driver (320x160mm has 1/40 scan). This requires handling the row driver in addition to ICN2038s. please check your matrix. If your matrix is 256x128mm then you only need the ICN2038s driver (scan will be 1/32 which is OK.)

wrldtvlr commented 3 years ago

Yes, physical size is 256x128, with 128x64 pixels and 1/32 scan.

On Tue, Feb 23, 2021, 11:17 alsaleem00 notifications@github.com wrote:

most P2's have different row driver (320x160mm has 1/40 scan). This requires handling the row driver in addition to ICN2038s. please check your matrix. If your matrix is 256x128mm then you only need the ICN2038s driver (scan will be 1/32 which is OK.)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hzeller/rpi-rgb-led-matrix/issues/1207#issuecomment-784362558, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6FYBUND37YFCI4GWZ7CETTAPPJDANCNFSM4UEIEZRQ .

alsaleem00 commented 3 years ago

here is the code

define BITS_ON MTX_RGB_PINS

define BITS_OFF 0

define ICN1038S_REG_1 11

define ICN1038S_REG_2 12

define ICN1038S_DEF_REG1 (0xf000) // register 1. (11)

define ICN1038S_DEF_REG2 (0xf000) // register 2. (12)

void matrix_write(uint16_t uVal, int width, int reg) { uint16_t value;

MTX_LAT_LOW();
MTX_CLK_LOW();
for (int i = 0; i < width; ++i) {
    value = (uVal & (0x8000 >> (i%16))) ? BITS_ON : BITS_OFF;
    if (i > (width - reg)) {
        MTX_LAT_HIGH();
    }
    PIN_LOW(MTX_RGB_PORT, BITS_ON);
    PIN_HIGH(MTX_RGB_PORT, value);
    MTX_CLK_LOW();
    MTX_CLK_LOW();
    MTX_CLK_LOW();
    MTX_CLK_HIGH();
    MTX_CLK_HIGH();
    MTX_CLK_HIGH();
}
MTX_CLK_LOW();
MTX_CLK_LOW();
MTX_LAT_LOW();

} void icn1038s_init() { matrix_write(ICN1038S_DEF_REG1, LED_WIDTH, ICN1038S_REG_1); matrix_write(ICN1038S_DEF_REG2, LED_WIDTH, ICN1038S_REG_2); } I repeated the clock/latch signals because my MCU is fast.

jeroenverspeek commented 1 month ago

@alsaleem00 looks like the right solution for the ICN2038S. I am trying to get a 128x128 panel to work with this chip (https://github.com/hzeller/rpi-rgb-led-matrix/issues/1713).

Your code does not look like it is written for hzellers library. If you could give more (code) context that would be helpful.

alsaleem00 commented 1 month ago

This code was written for STM32F722. The PIN_/MTXCLK/MTXLAT/MTX_CLK_to control the pin directly.

jeroenverspeek commented 1 month ago

Hi Alsaleem00, Thanks for your reply.

Op za 19 okt. 2024 13:14 schreef alsaleem00 @.***>:

This code was written for STM32F722. The PIN_/MTXCLK/MTXLAT/MTX_CLK_to control the pin directly.

— Reply to this email directly, view it on GitHub https://github.com/hzeller/rpi-rgb-led-matrix/issues/1207#issuecomment-2423767408, or unsubscribe https://github.com/notifications/unsubscribe-auth/AURIRCSVZXK4X3OMQ73FYUTZ4I5KNAVCNFSM6AAAAABQHLKGKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTG43DONBQHA . You are receiving this because you commented.Message ID: @.***>