I recently purchased a Matrix Portal M4 and a 64x64 matrix and I am using Arduino IDE. I seem to be having the same problem as other users where the matrix is divided in 4 horizontal bands, with two of them not displaying anything. You can see something similar in
this post.
I've soldered the E line to pin 16, tested the simple, tiled and pixeldust examples from Adafruit Protomatter library. Tried different initializations of the matrix but i can never get those in between leds to turn on.
Here is how i am initializing the matrix, what am i doing wrong?
Code: Select all
#include <Adafruit_Protomatter.h>
uint8_t rgbPins[] = { 7, 8, 9, 10, 11, 12 };
uint8_t addrPins[] = { 17, 18, 19, 20, 21 };
uint8_t clockPin = 14;
uint8_t latchPin = 15;
uint8_t oePin = 16;
Adafruit_Protomatter matrix(
64,
1,
1,
rgbPins,
5,
addrPins,
clockPin, latchPin, oePin,
false
);
void setup() {
ProtomatterStatus status = matrix.begin();
}
void loop() {
matrix.drawLine(0, 0, matrix.width() - 1, matrix.height() - 1,
matrix.color565(255, 0, 0)); // Red line
matrix.drawLine(matrix.width() - 1, 0, 0, matrix.height() - 1,
matrix.color565(0, 0, 255)); // Blue line
int radius = min(matrix.width(), matrix.height()) / 2;
matrix.drawCircle(matrix.width() / 2, matrix.height() / 2, radius,
matrix.color565(0, 255, 0)); // Green circle
matrix.show();
}