help 8x8x4 don led matrix

Hi
I'm new to Arduino and I've tried to do a test on my 8x8x4 don led matrix with this test program.

// Program to demonstrate the MD_Parola library
//
// Uses the Arduino Print Class extension with various output types
//
// MD_MAX72XX library can be found at https://github.com/MajicDesigns/MD_MAX72XX
//

#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>

const uint16_t WAIT_TIME = 1000;

// Define the number of devices we have in the chain and the hardware interface
// NOTE: These pin numbers will probably not work with your hardware and may
// need to be adapted
#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW
#define MAX_DEVICES 4
#define CLK_PIN   13
#define DATA_PIN  11
#define CS_PIN    10

// Hardware SPI connection
MD_Parola P = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);
// Arbitrary output pins
// MD_Parola P = MD_Parola(HARDWARE_TYPE, DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);

void setup(void)
{
 P.begin();
}

void loop(void)
{
 P.print("Hello");
 delay(WAIT_TIME);
 P.print(1234, DEC);
 delay(WAIT_TIME);
 P.print(1234, HEX);
 delay(WAIT_TIME);
 P.print(12.5);      // float not supported by Arduino Print class
 delay(WAIT_TIME);
 P.print(9876l);
 delay(WAIT_TIME);
 P.println("end");   // only get the /r/n characters - avoid using println
 delay(WAIT_TIME);
 P.write('A');
 delay(WAIT_TIME);
 P.write('B');
 delay(WAIT_TIME);
 P.write('C');
 delay(WAIT_TIME);
}

But it does not work, the text is messy and it is inverted

Change this

#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW

to be your type of hardware. There is extensive documentation in the MD_MAX72xx library for how to adapt to different hardware types. The 4 joined up modules are usually FC16 type.

And please learn to use code tags (see the sticky topic at the top of the forum) when you are including code in your post.

Henrik_t7:
Hi
I'm new to Arduino

That's better!

Excuse the messy look, but it's my first draft in this forum.

Must remember next time to do it right.
But I have made it work, you have to write the right hardware name.

#define HARDWARE_TYPE MD_MAX72XX::FC16_HW

Thanks again.

Must remember next time to do it right.

No do it right now. You can edit your post. So edit that first post to add the proper code tags.