I have a couple of Arduino Megas as well as a couple of Unos.
I`m running a sketch without problems on the Uno. But it does not want to work on Mega. If someone can give me the Answer it would be awesome... I have been struggling with this for nearly 2 days now?
here is the sketch that I`m using. ..... VERY SIMPLE....
Tiny drawing but I don't see Vcc or ground connection. Also your sketch is defining only one pin but schematic shows 3 to connect to the LCD, maybe Mega isn't assigning the 2 missing pins correctly?
When you moved the LCD to your Mega, are you sure you got the wires right?
if the LCD uses SPI connection, then the SPI pins on Mega are on different pins then on Uno. on Uno pins 11, 12, 13 are SPI. and it is better to use pin 10 for Slave Select (your 9). on Mega the SPI pins are 50, 51, 52. Slave Select is 53.
the SPI pins (CLK MISO and MOSI) are on the ICSP header too. it is on the same place on Uno and Mega. Mega compatible shields use that.