Basically I am trying to switch from my 2x Arduino UNO R3 to 2x Arduino MEGA 2560 R3
I changed the Arduinos,changed the wiring specific to Mega as described by Adafruit,edited the pin 8 to pin 11 in the Arduino IDE and nothing happens
If I try to run the led matrix example code,everything works,so the problem is not on wiring,not with arduinos and not with the led matrix
That means it is something that I miss in my processing 3.0 code or arduino code
I think it is about the way it comunicates on serial,from what I read,the mega 2560 has more serial ports than the uno so that may be reason that it is not working on mega but works on un ?
Any help is really appreciated,thanks in advance !
I think it is about the way it comunicates on serial,from what I read,the mega 2560 has more serial ports than the uno so that may be reason that it is not working on mega but works on un ?
No nothing to do with it.
Have you read How to use this forum because it will tell you what information to give.
Specifically #include <RGBmatrixPanel.h> // Hardware-specific library
Where is this from? Link please. Given the comments it looks like that is where things might be going wrong. The Mega has a different arrangement of timers than the Uno and if that libiary uses timers, as looks likely, then it will not work without modification.
You posted this question to stackoverflow: http://stackoverflow.com/questions/41189325
where I asked you a question. Then according to SO you removed the question and then reposted it on SO again today: http://stackoverflow.com/questions/41200342
Why did you do that? Why didn't you answer my question? I find it very annoying that I have to ask you the same question multiple times in multiple places because I'm nice enough to want to help you. So here's the question again:
The Processing code has the following lines:
 port1 = new Serial(this, "COM1" , 128000); // <-O-> set baud rate and port for first RGB matrix
 port2 = new Serial(this, "COM2" , 128000); // <-O-> set baud rate and port for second RGB matrix
I don't know anything about Processing but I read that as the Mega is expected to be on COM1 or COM2. Which port does your Mega appear on in the Tools > Port menu of the Arduino IDE?
I remapped the Mega on COM1 and COM2 (I also tried COM3 and COM4,no succes,the RX on the Mega start to blink when I run the processing code,so I think it is receiving the data)
And sorry for removing the question,I've put the wrong code and could not delete...
The test example code is working
The arduino mega led RX lights so it is reading from serial,what can go wrong ? Tried disabling double buffering and swapbuffer,no effect
The test example code is working
The arduino mega led RX lights so it is reading from serial,what can go wrong ? Tried disabling double buffering and swapbuffer,no effect
It is because of L led ? After starting to receive the serial data,on uno only the RX light up and after serial data stop the led is off. On mega after starting to receive the serial data,the RX led light up and also the L led light up and stays so. After the serial data stop the RX turn off but the L led remains lit