// Datasheet https://cdn.velleman.eu/downloads/29/infosheets/vmp502_led8x8_1088as.pdf
// http://www.ledtoplite.com/uploadfile/2017/1088/TOP-CC-1088AS.pdf
// Code edited from: https://wokwi.com/projects/383952775370171393
const uint8_t anodes [8] = { 2, 3, 4, 5, 6, 7, 8, 9 };
const uint8_t cathodes [8] = { 10, 11, 12, 13, A0, A1, A2, A3 };
void setup() {
for (int i = 2; i < 18; ++i) {
pinMode(i, OUTPUT);
}
}
void loop() {
for (int i = 0; i < 8; ++i)
{
for (int j = 0; j < 8; ++j) {
digitalWrite(cathodes[j], HIGH);
}
digitalWrite(cathodes[i], LOW);
for (int j = 0; j < 8; ++j) {
for (int k = 0; k < 8; ++k) {
digitalWrite(anodes[k], LOW);
}
digitalWrite(anodes[j], HIGH);
delay(50);
digitalWrite(anodes[j], LOW);
delay(50);
}
}
}