Problem with using multiple 32x64 LED Matrices with Arduino Mega 2560

Hi, I'm trying to control two 32x64 LED Matrices independently however only the second seems to work with this current code i'm using. I was wondering if someone could provide a potential solution or let me know if what I'm doing would even be possible with my specific library or micro controller

These are the matrices I've been using if it helps

#include <RGBmatrixPanel.h>

// Screen 1 pins
#define CLK1  11
#define OE1   9
#define LAT1  10
#define A1    A0
#define B1    A1
#define C1    A2
#define D1    A3

// Screen 2 pins
#define CLK2  13
#define OE2   12
#define LAT2  8
#define A2    A4
#define B2    A5
#define C2    A6
#define D2    A7

RGBmatrixPanel matrix1(A1, B1, C1, D1, CLK1, LAT1, OE1, false, 64);
RGBmatrixPanel matrix2(A2, B2, C2, D2, CLK2, LAT2, OE2, false, 64);

void setup() {



  matrix1.begin(); // Initialize the first screen
  delay(1500);
  matrix2.begin(); // Initialize the second screen

  // Display something on each screen
  matrix1.fillRect(0, 0, 20, 20, matrix1.Color333(7, 0, 0)); // Red on the first screen
  delay(1500);
  matrix2.fillRect(0, 0, 20, 20, matrix1.Color333(0, 0, 7)); // Blue on the second screen

  delay(1500);
}

void loop() {
  // Do nothing
}

@jasonmuszynski Oops. Maybe, reference matrix2?

Your connections are incorrect. Defining these pins are not enough. The most important pins is a six color channels R0 G0 B0 R1 G1 B1 which must be separate sets for each matrix.

Besides, I don’t understand at all why you needed to connect the matrices independently and allocate two sets of pins? These matrices support daisy chaining, and you can display completely independent images on each

Just realizing this now, I tried changing a few things around earlier to try to fix it and must've not changed it back. Regardless it functions the same unfortunately.

I think I might use a different or additional microcontroller instead, not too sure if its worth the headache of keeping trying.

Daisy chaining the matrices displays the same image on each screen depending on the code I use.