Bonjour,
J'ai un Arduino Uno avec lequel j'aimerais faire un projet de LED matrix avec un Maxim 7219CNG. Par contre, je n'y arrive pas. Mon problème est que toute les del s'allument ou se ferme. Pas moyen d'en allumer une à la fois. Je n'arrive pas à déceler le problème. J'utilise la bibliothèque LedControl.h sur la version 1.0.3 d'Arduino. Voici mon code et mon shéma. Mon LED matrix est un ARK SZ420788K (common cathode). Si vous pouvez m'aider, j'apprécierais énormément. Merci.
#include "LedControl.h"
/*
pin 12 is connected to the DataIn, PIN 1
pin 11 is connected to the CLK, PIN 13
pin 10 is connected to LOAD, PIN 12
We have only a single MAX72XX.
*/
LedControl lc=LedControl(12,11,10,1);
void setup() {
/* The MAX72XX is in power-saving mode on startup, we have to do a wakeup call */
lc.shutdown(0,false);
/* Set the brightness to a medium values */
lc.setIntensity(0,8);
/* and clear the display */
lc.clearDisplay(0);
}
void loop() {
// fait clignoter un pixel
// en réalité l'écran change d'intensité !!?
lc.setLed(0,2,7,true);
delay(1000);
lc.clearDisplay(0);
delay(1000);
}