Mega + Serial + MaxMatrix are incompatible sometimes.

Hi, I'm using a Mega with 8*8 Led Matrix * 6 and the MaxMatrix library from Google Code Archive - Long-term storage for Google Code Project Hosting.. I have their examples working fine, and have used the functions in my own program.

On another test sketch the Serial.begin(9600) and the MaxMatrix seem to be incompatible. With both included it won't build, the error is:

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

If I take either out it's alright. If I switch the board to Uno it's alright, back to Mega, fails again.

I tried starting again with blink, and again Serial and MaxMatrix are incompatible.

Is there any stored config for a Sketch? Where?
When you select a library does it do any more than put the 'include x.h' in the program?
Is there a way of resetting the sketch build, and forcing it to build everything again?

I'm concerned that the sketch that is working well will suddenly get this incompatibility and I won't know how to fix it.

You could try the parola.h library instead

Thanks. I've already switched from LedControl.h because that didn't work correctly on >1 8*8. MaxMatrix looked better for some days. I've just had a quick look at that MD_Parola page, seen it needs the MD_MAX72xx library, which I've downloaded and just trying the examples. Found that it wants the MD_KeySwitch library, which I don't have but it's not complaining. Hmm... I was hoping for quicker progress than this.

FYI all the MD_* libraries are found at the code repository for my libraries. KeySwitch is just for the input switches used in the examples code. Many of the examples have ways of turning the UI off and letting it run by itself (demo mode).

Thanks, I had a look at one example, would like to try them all but have to do other parts of the project.

I've realised that the problem is the same as this.