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
}