Hi, I've been working on a project for some time now and have really hit the limits on the mega 2560. The sketch has grown to 243kb using 6kb of SRAM and that's after skrinking libraries. The reason its so large is because it has a 22 page GUI for a 800*480 display.
A while ago I changed the project to include two mega2560's, not because of the limitations, I wanted all my connectors to be hidden away from the display not coming out of it, I have 9 so far and hopefully more to come. Currently I have the two mega2560's communicating through the serial and that has to work exactly the same.
One arduino is responsible for the sensors and equipment and the other is responsible for the GUI and RTC. The mega 2560 is perfect for the equipment as it has more than enough resources because it has no GUI or UTFT or anything like that.
Now I want to add more features but I'm at a point where I can't have many more images, etc... So I want to replace the mega controlling the display with a Due and leave the other mega doing the rest.
Will the mega2560 and Due communicate via Serial the same as two mega will? As in Serial2.println(F("304"));?
The libraries on the display mega 2560 are as follows.
Wire.h
UTFT.h
UTouch.h
UTFT_tinyFAT.h
SdFat.h
EEPROM.h
RTClib.h
Time.h
TimeAlarms.h
I'm not worried about the first 5 libraries as they are compatible with minimal code changes.
I know the Due doesn't have an eeprom and was going to add one. I found this tutorial and was wondering if it will work? It looks pretty close to the eeprom library and straightforward. I'm worried about the code not hooking it up.
What really scares me about the conversion is the RTC and times. I'm using the RTClib with a DS1307 and was hoping the following library will work without much changes to the sketch? Has anyone used this updated version?
http://forum.arduino.cc/index.php?topic=143515.0
For the time and timeAlarm library I found a link on the arduino website to updated libraries for the Due, will these work without changes to the sketch?
http://playground.arduino.cc/Code/Time
I don't have a Due but was going to order one and some eeproms but wanted to make sure this was possible without rewriting the sketch. If the serial communication between the mega and due are exactly the same then I shouldn't need to touch the other sketch?