#include <MD_MAX72xx.h>
const int8_t CS_PIN = D7;
const uint8_t NB_MAX7219 = 4;
MD_MAX72XX afficheurs(MD_MAX72XX::PAROLA_HW, CS_PIN, NB_MAX7219);
void setup() {
afficheurs.begin();
afficheurs.clear();
}
void loop() {
static int16_t col = 7;
static int8_t dir = 1;
afficheurs.clear();
afficheurs.setChar(col, 'M');
afficheurs.update();
col += dir;
if (col > 32 || col < 6) {
dir = -dir;
}
delay(100);
}