Hello,
Few days ago I bought matrix module from Aliexpress:
I tried to merge it with code:
#include <HCMAX7219.h>
#include "SPI.h"
/* Set the LOAD (CS) digital pin number*/
#define LOAD 10
/* Create an instance of the library */
HCMAX7219 HCMAX7219(LOAD);
void setup()
{
}
/* Main program */
void loop()
{
byte Loopcounter;
int Position;
/* Clear the output buffer */
HCMAX7219.Clear();
/* SCROLL SOME TEXT 2 TIMES BEFORE MOVING ON */
for (Loopcounter = 0; Loopcounter <= 2; Loopcounter++)
{
for(Position=0; Position <= 64; Position++)
{
HCMAX7219.printMatrix("SHIS IR TESTS ", Position);
HCMAX7219.Refresh();
delay(80);
}
}
/* SCROLL SOME INVERTED TEXT 2 TIMES BEFORE MOVING ON */
HCMAX7219.Invert(INVERTON);
for (Loopcounter = 0; Loopcounter <= 2; Loopcounter++)
{
for(Position=0; Position <= 64; Position++)
{
HCMAX7219.Clear();
HCMAX7219.printMatrix("SHIS IR TESTS ", Position);
HCMAX7219.Refresh();
delay(80);
}
}
HCMAX7219.Invert(INVERTOFF);
/* SCROLL AN INTEGER NUMBER */
for(Position=0; Position <= 80; Position++)
{
HCMAX7219.Clear();
HCMAX7219.printMatrix(-12345678, Position);
HCMAX7219.Refresh();
delay(80);
}
/* SCROLL AN INTEGER NUMBER WITH DECIMAL PLACE */
for(Position=0; Position <= 96; Position++)
{
HCMAX7219.Clear();
HCMAX7219.printMatrix(-12345678, 2, Position);
HCMAX7219.Refresh();
delay(80);
}
}
For testing, but when I connect it my module this text are showing all matrix alone, it means that i have 4 matrix displays and all matrixes are showing this text not as all together.
Photo are in attachement.
Please help, where is problem?
Thank you!
