Bonjour Tout le monde,
je suis en train de programmer une matrice 8x8 verte avec un MAX7219.
Cependant après que mon programme a boucler une fois, ma matrice n'affiche plus rien ... =(
et si je reset ma mega, c'est pareil ... =(
Pouvez vous m'aider ?
Merci.
En pièce jointe : mon code et mon câblage
Hello Everyone,
I'm trying to program a 8x8 green matrix with a MAX7219.
However, after my program loop once, my matrix does not show anything ... =(
and if I reset my mega, it's the same ... =(
Can you help me?
Thank you.
Attachment: my code and my wiring
#include "LedControl.h" // need the library
#include <binary.h>
byte monster[]={B00011000,B00100100,B01000010,B01000010,B01000010,B01000010,B00100100,B00011000};
byte letter[]={B01111110,B01000000,B01000000,B01111110,B01000000,B01000000,B01000000,B01111110};
byte oeil[]={B00000000,B00111100,B01000010,B10000001,B10000001,B01000010,B00111100,B00000000};
byte invader[]={B00011000,B01000010,B01000010,B01011010,B00100100,B11011011,B10111101,B00100100};
byte mech[]={B01111110,B10111101,B10011001,B11111111,B00111100,B10011001,B11000011,B10011001};
LedControl lc=LedControl(12,11,10,1); // lc is our object
// pin 12 is connected to the MAX7219 pin 1
// pin 11 is connected to the CLK pin 13
// pin 10 is connected to LOAD pin 12
// 1 as we are only using 1 MAX7219
void setup()
{
// the zero refers to the MAX7219 number, it is zero for 1 chip
lc.shutdown(0,false);// turn off power saving, enables display
lc.setIntensity(0,8);// sets brightness (0~15 possible values)
lc.clearDisplay(0);// clear screen
}
void loop()
{
for(int a=0;a<8;a++)
{
lc.setRow(0,a,monster[a]);
delay(100);
}
delay(2000);
lc.clearDisplay(0);
// delay(500);
// for(int a=7;a>-1;a--)
// {
// lc.setRow(0,a,letter[a]);
// }
// delay(2000);
// lc.clearDisplay(0);
}
MATRIX_LED NFM-12881ABx-11.pdf (170 KB)
Visio-Matrice led.pdf (101 KB)