So i tried to use the led matrix 1588BS and ran into some problems when i wired it using this photo as a guideline.
now the thing worked just fine when i tested it row by row, but then i tried making a smiley face. first i tried putting all leds on that i needed but that didn't really go so well since the smiley face has some weird shape or smthing, so i tried the method of flikkering every single led on with like 3ms of delay between them, and it works fine, until a bit later it'll just randomly turn off and all i get is a single led turned on.
does anyone know why and how to fix it?
const int Row[] = {2, 3, 4, 5, 6, 7, 8, 9};
const int Colmn[] = {10, 11, 12, 13, A0, A1, A2, A3};
void setup() {
for(int i=0; i<8; i++){
pinMode(Row[i], OUTPUT);
pinMode(Colmn[i], OUTPUT);
}
for(int i=0;i<8;i++){
digitalWrite(Colmn[i], HIGH);
}
Serial.begin(9600);
}
void clear(){
for(int i = 0; i<8; i++){
digitalWrite(Colmn[i], HIGH);
digitalWrite(Row[i], LOW);
}
}
const int smileyR[] = {2, 2, 4, 4, 5, 5, 5, 5};
const int smileyC[] = {2, 5, 1, 6, 2, 3, 4, 5};
static int time = 100;
static int exec = 0;
void loop() {
if(millis()>=time){
time+=3;
clear();
digitalWrite(Row[smileyR[exec]], HIGH);
digitalWrite(Colmn[smileyC[exec]], LOW);
exec++;
if(exec == 8){
exec=0;
}
}
}
'''
typ of plak hier code