RBG Matrix

I just updated to the new version of the Arduino software and now the RGB.h and RGBMatrix.h libraries don't work. It's been a while since I used these libraries. I don't even remember where I downloaded it from. I also had to copy and paste them from the old library folder. Thanks.

"Don't work" in what way, exactly?

Probably just a question of replacing

#include "WProgram.h"

with

#if defined(ARDUINO) && ARDUINO >= 100
  #include "Arduino.h"
#else
  #include "WProgram.h"
#endif

Sorry. It does not compile. This is the error message I get:

In file included from sketch_dec25a.cpp:3:
/Applications/Arduino.app/Contents/Resources/Java/libraries/RGBMatrix/RGBMatrix.h:10:22: error: WProgram.h: No such file or directory

I am not familiar with this new way of defining things.

Works with version 0023, not the newest version.

Works with version 0023, not the newest version.

"Works" implies that the library could be compiled and linked, and uploaded to the board, and does something useful there.

If you can't even compile, that's a different issue. MarkT told you what you needed to do. Did you do that? Show the source and header files.

I don't even remember where I downloaded it from.

But, you're hoping someone else will do the research for you?

PaulS, I've been doing the research. Just getting frustrated. Here's what I got.

With the 1.0 version, it does not compile. The error message is the one I posted below. I found a different example that has that bit of #if defined... code that MarkT mentioned. I added it to my code, but I got the same error. Here's the code I am using and the error message.

#include <RGB.h>
#include <RGBMatrix.h>

#if defined(ARDUINO) && ARDUINO >= 100
  #include "Arduino.h"
#else
  #include "WProgram.h"
#endif

void setup() {
  
}

void loop() {
  //Test
}
In file included from sketch_dec26a.cpp:2:
/Applications/Arduino.app/Contents/Resources/Java/libraries/RGBMatrix/RGBMatrix.h:10:22: error: WProgram.h: No such file or directory

I've downloaded the libraries from Sparkfun. Controlling RGB Matrices with Arduino - SparkFun Electronics

Finally, using the 0023 software, I was able to compile and upload it to the Arduino without any problems. I would like to get this working on the new version so I don't need to have to versions of Arduino. Thanks.

I added it to my code

But, your code is not the code that is failing to compile. The library is, so that is where you need to put MarkT's code.

PaulS that's where I'm confused. I thought that code he posted went at the beginning of the program. Are you saying I need to edit the library too?

Are you saying I need to edit the library too?

No, I'm saying you need to edit the library, instead.

Genius PaulS. Thanks.