#include <MD_MAX72xx.h>
MD_MAX72XX mx = MD_MAX72XX(MD_MAX72XX::PAROLA_HW,10,1);
bool leds[8] [8]={
{ 0, 1, 1,0, 1, 1, 0, 0},
{ 0, 1, 1, 1, 1, 1, 0, 0},
{ 0, 1, 1, 1, 1, 1, 0, 0},
{ 0, 1, 1, 1, 1, 1, 0, 0},
{ 0, 1, 1, 1, 1, 1, 0, 0},
{ 0, 1, 1, 1, 1, 1, 0, 0},
{ 0, 0, 0, 1, 1, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0}
};
bool leds2[8] [8]={
{ 1, 1, 1,1, 1, 0, 0, 0},
{ 1, 1, 1, 1, 1, 0, 0, 0},
{ 1,1, 1, 1, 1, 0, 0, 0},
{ 1, 1, 1, 1, 0, 0, 0, 0},
{ 1, 1, 0, 0, 0, 0, 0, 0},
{ 1, 0, 1, 0, 0, 0, 0, 0},
{ 1, 0, 0, 1, 0, 0, 0, 0},
{ 1, 0, 0, 0, 1, 0, 0, 0}
};
void setup() {
// put your setup code here, to run once:
mx.begin();
mx.control(MD_MAX72XX::INTENSITY,MAX_INTENSITY);
mx.clear();
}
void loop() {
for(int y = 0; y < 8; y++){
for(int x = 0; x < 8; x++){
mx.setPoint(y, x, leds [y][x]);
} } delay(1000);
for(int y = 0; y < 8; y++){
for(int x = 0; x < 8; x++){
mx.setPoint(y, x, leds2 [y][x]);
}
delay(1000);
}
}
// put your main code here, to run repeatedly: