Go Down

Topic: Use led matrix 8 x 32 (Read 169 times) previous topic - next topic

pismat

Hi
Sorry for bad english
I hawe problem to use a led matrix 8 x 32 with Arduino Uno
I use this code:

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


#define MAX_DEVICES 4
#define CLK_PIN   11
#define DATA_PIN  12
#define CS_PIN    10

MD_Parola P = MD_Parola(DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);

void setup(void) {
     P.begin();
     P.print("PPPPPPPP");
}

void loop(void) {
}

I have included libraries MD_Parola.h e MD_MAX72xx.h

Compiling the program I have this error:

In file included from Led_31.ino:1:0:
C:\Users\Portatile\Documents\Arduino\libraries\MD_Parola-master\src/MD_Parola.h: In member function 'MD_MAX72XX::fontType_t* MD_Parola::getFont(uint8_t)':
C:\Users\Portatile\Documents\Arduino\libraries\MD_Parola-master\src/MD_Parola.h:1814:116: error: 'nullptr' was not declared in this scope
   inline MD_MAX72XX::fontType_t* getFont(uint8_t z) { if (z < _numZones) return (_Z[z].getZoneFont()); else return(nullptr); };
                                                                                                                    ^
Led_31.ino: At global scope:
Led_31:11: error: invalid conversion from 'int' to 'MD_MAX72XX::moduleType_t' [-fpermissive]
In file included from Led_31.ino:1:0:
C:\Users\Portatile\Documents\Arduino\libraries\MD_Parola-master\src/MD_Parola.h:1117:3: error:   initializing argument 1 of 'MD_Parola::MD_Parola(MD_MAX72XX::moduleType_t, uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]


   MD_Parola(MD_MAX72XX::moduleType_t mod, uint8_t dataPin, uint8_t clkPin, uint8_t csPin, uint8_t numDevices = 1);
   ^
invalid conversion from 'int' to 'MD_MAX72XX::moduleType_t' [-fpermissive]


Why?

Thanks


Go Up