I have a led matrix from huidu. I use Adafruit library to programing it. But works so strange. It loads 2 pixel at each time. What is the problem?
#include <RGBmatrixPanel.h>
#define CLK 8 // USE THIS ON ADAFRUIT METRO M0, etc.
//#define CLK A4 // USE THIS ON METRO M4 (not M0)
//#define CLK 11 // USE THIS ON ARDUINO MEGA
#define OE 9
#define LAT 10
#define A A0
#define B A1
#define C A2
RGBmatrixPanel matrix(A, B, C, CLK, LAT, OE, false);
void setup() {
matrix.begin();
for(int i = 0; i<32;i++)
for(int j = 0; j<16;j++)
{
matrix.drawPixel(i, j, matrix.Color333(5, 0, 0));
delay(200);
}
}
void loop() {
// put your main code here, to run repeatedly:
}