-->
Page 1 of 1

Error comiling sketch including MD_MAX72XX library

PostPosted: Wed Apr 06, 2016 9:55 pm
by aussieW
Hi

I am trying to compile an example sketch which is included with the MD_MAX72XX library (MD_MAX72XX_Test.ino) on a NodeMCU V1.0. However, I am getting an error (see below). I believe the code is okay because it compiles when I change the board to a UNO.

Can anyone assist is resolving this issue?

ERROR:
In file included from /root/Arduino/libraries/MD_MAX72xx/examples/MD_MAX72xx_Test/MD_MAX72xx_Test.ino:4:0:
/root/Arduino/libraries/MD_MAX72xx/src/MD_MAX72xx.h:288:33: error: section attribute not allowed for 'MD_MAX72XX::fontType_t'
typedef const PROGMEM uint8_t fontType_t;

^
/root/Arduino/libraries/MD_MAX72xx/examples/MD_MAX72xx_Test/MD_MAX72xx_Test.ino: In function 'void loop()':
/root/Arduino/libraries/MD_MAX72xx/examples/MD_MAX72xx_Test/MD_MAX72xx_Test.ino:610:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
scrollText("Graphics ");
^
/root/Arduino/libraries/MD_MAX72xx/examples/MD_MAX72xx_Test/MD_MAX72xx_Test.ino:623:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
scrollText("Control ");
^
/root/Arduino/libraries/MD_MAX72xx/examples/MD_MAX72xx_Test/MD_MAX72xx_Test.ino:630:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
scrollText("Transform ");
^
/root/Arduino/libraries/MD_MAX72xx/examples/MD_MAX72xx_Test/MD_MAX72xx_Test.ino:636:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
scrollText("Charset ");
^
Using library MD_MAX72xx at version 2.6 in folder: /root/Arduino/libraries/MD_MAX72xx
exit status 1
Error compiling.

Re: Error comiling sketch including MD_MAX72XX library

PostPosted: Thu Apr 07, 2016 2:57 pm
by aussieW
Okay, it looks like I may have found the solution to this problem. It looks like there was a change made to the library to support SPI rather than direct register access, which only works for AVR's. Once I updated to the new version available on GitHub it seems to work.

Re: Error comiling sketch including MD_MAX72XX library

PostPosted: Sun Aug 14, 2016 2:41 pm
by netdudeuk
Hi

I have exactly the same issue. Please would you be able to go into more detail regarding the fix ?

Thanks

Re: Error comiling sketch including MD_MAX72XX library

PostPosted: Thu Aug 25, 2016 6:04 pm
by INGY
@Netdudeuk,

If you get the library from github it doesn't have the issue.

https://github.com/mariusrugan/MD_MAX72XX