Hi,
Sometimes I have a strange behaviour when my application freezes - it renders half of menu and nothing happens.
I did automatic aquarium doser with 3 pumps and ILI 9341 touch screen with touchable menu. Everything works excellent however yesterday at 22pm I uploaded this line:
char line2[40]="";
strcat(line2,"5ML: ");
After upload only half of menu rendered and application freezed, options didnt work. Then I spent 2 hours searching the reason, but these two lines do nothing important. I downloaaded Arduino IDE 1.6.5r5 and the menu didnt render at all So I came back to IDE 1.5.5r2 in which I created 90% of the application. I am finishing it and this was scary blocker for me.
I use Ardu Mega 2560, sketch uses 35 044 bajtów z (13%) of the memory. Maksimum to 258 048 bajtów. Global variables uses 2 786 bajtów z (34%) dynamc memory, leaving 5 406 bajtów for local variables. Maksimum to 8 192 bajtów.
Yesterday i uploaded last good working version and today I made the same change in code and after upload everything works.. So what could that be and what to do i it happens again?
I could send all program but I doubt anybody would like to check it Message exceedes 9000 characters.. so I attach all libraries folder, the sketch is TouchScreenMenuTestCUSTOM73.
If someone could format it I would appreciate I use Windows 7 and Arduino IDE 1.5.5 r2 I couldnt make it work in Eclipse. I like IntelliJ Idea but it seems not to have any working support for this. If someone would and upload Eclipse ready to use with this project it would be great.
Because I wanted somebody to have the same config / libraries as me so as to avoid compilation problems. It works only in one Arduino IDE version, so I guess if you would open it in 1.6 and copy only the sketch, it would work, I haven't figured it out yet.