7" touch screen troubleshooting on AT Mega 2560 board

Hi all,

Just starting on a marine reef controller for my new marine tank setup.

I have most of my controller parts together now, but I have never done any Arduino code or anything before, so I will have lots of silly questions. But the big one right now is,

I'm testing the bits I have and I've just uploaded the screen demo sketch which worked well, I then went to upload the touch screen calibration sketch and found the instructions displayed on the screen where upside down and back to front (reading right to left not left to right). All so touching the screen to contine as instructed (once I got my head round reading backwards) nothing further happened.
Is this a common issue/have I done something stupid?

All help greatly received.

Ben.

Screen rotation issues occur! How to fix it depends on screen type, hookup, and code.

I do not know what the code differences are between your demo code and the calibration code, but if they were both enabled for the same screen type and hookups, then you need to search the lines.

If after looking at the code yourself then post it here may halp others to see what is going on.

spicetraders thanks for the reply, I assumed it must be code not hardware as the demo worked fine. The screen is hooked up to the shield via a 4 inch 40 pin ribbon and the shield is sitting on my mega. So I doubt I have any wires crossed.
I haven't had a chance to fiddle today so tomorrow I'll try wiping the board memory and reuploading the sketch, maybe the calibration sketch clashed with the demo already on the board?
If that doesn't render any joy I'll throw the code up on here if I can't spot the problem myself.

Yes post the code for the calibration and the demo (easier) to compare.
And yes not as likely to be hardware, especially if you load the demo back in and it works right.
Both codes came from the same source and use the same library?

Yes, both were supplied by sainsmart who I brought the mega, shield and screen off. I do need to recheck the demo. That was installed first, then I moved the libraries for the touch screen, one of which was a duplicate of the library needed for the demo which I copied and replaced with, then re-uploaded. Wonder if that's what's messed it up.
Codes to follow tomorrow if I can't sort it out and doubtless many more questions as I start trying to write code for sensor input and pwm control via the I2C bus as well as programing user interface.
Thanks again.

Ben.

Thanks for the help so far people, I have put my code problems up on the programing topic.