32x8 led matrix wrong direction

I have issue with direction of my sliding text. I want to do it horizontally but it goes vertically.
Can anybody tell me why? My board is “MAX7219 Dot Matrix”

Here you have code:

//We always have to include the library
#include "LedControlMS.h"

Now we need a LedControl to work with.
***** These pin numbers will probably not work with your hardware *****
pin 12 is connected to the DataIn
pin 11 is connected to the CLK
pin 10 is connected to LOAD
We have only a single MAX72XX.
#define NBR_MTX 4
LedControl lc=LedControl(12,11,10, NBR_MTX);

/* we always wait a bit between updates of the display */
String scrollString= "MAKESPACE MADRID    ";
int stringLength=scrollString.length();
char ch0, ch1, ch2, ch3;
int nextCharIndex=0;

void setup() {
   The MAX72XX is in power-saving mode on startup,
   we have to do a wakeup call
  Serial.begin (9600);

  for (int i=0; i< NBR_MTX; i++){
  /* Set the brightness to a low value */
  /* and clear the display */
  ch0= scrollString[0];
  ch1= scrollString[1];
  ch2= scrollString[2];
  ch3= scrollString[3];

void loop(){
  lc.displayChar(0, lc.getCharArrayPosition(ch0));
  lc.displayChar(1, lc.getCharArrayPosition(ch1));
  lc.displayChar(2, lc.getCharArrayPosition(ch2));
  lc.displayChar(3, lc.getCharArrayPosition(ch3));
  if (nextCharIndex>=stringLength) nextCharIndex=0;

Jabbadabbadahaht: My board is "MAX7219 Dot Matrix"


Here you go if you ment that Aliexpress module

You neglected to read the reviews on how to make the display work.

These are FC-16 modules. You can make then work with LedControl by changing the definition of the font and rearranging the way the code scrolls. The problem is that there are a number of ways to wire up these matrices and LedControl assumes one way.

Alternatively you can use the libraries mentioned in the reviews:

Work fine with MD_Parola and MD_Max72xx library if you use #define USE_FC16_HW

Link to the libraries in my signature footer. Please make sure you read the MD_MAX72xx documentation on how to configure the library as described and note that the lowest modules number is on the right (ie, the 'in' side is on the right).