I'm using 16x2 lcd with arduino mega, but it only show black boxes on the first row. I'm using 1.05r2 and sketch is the same as as example with my pins... Then I used same sketch with uno, same pins on arduino mega and it worked... I have tried three different lcds, all worked with uno but not with mega... Then I found 3d printer repetier firmware, I uploaded it on mega with configuration of my lcd, and it worked.. I' confused. Mega doesn't worked with original library... There is no connection failure...
Did you tell IDE that you are programming MEGA instead of UNO ?
You need to set the correct board (menu - Tools - board (if your language is set to English)).
Yes, I have also checked it twice... Again the same... Same breadboard, same pins... Only I'm choosing Mega instead of Duo...
I have tried it also with DFRobot Lcd shield... The same situation.. 16x2 lcd works with uno, but not with Mega. =(