I read datasheet and figured out my LCD was Panel B, not sure if this is correct though.
When I uploade "Hello World" sketch. Screen / backlight and contrast work fine. Potentiometer also correctly controls contrast. But I don't see anything else on the screen, just a solid block of white pixels.
I ran GLCD diagnostic. And in Serial monitor I saw this:
I can't really tell where the wires are going.
The message from diags is stating that the library was waiting for the lcd to finish coming out of reset and it never saw it.
Because of this, it gave up and never sent any initialization commands to the LCD>
Because of this, the LCD pixels are not turned on and you won't see any pixels.
This is due to either mis-wiring or wires not making proper connections.
Can you take some clearer photos?
I need to be able see where all the wires go, so I can be your second set of eyes to look over
your shoulder to see if there is something easily fixable like accidentally hooking up wires to
the wrong pin numbers etc...
Also what about a clear photo of the solder joints.
Sometimes bad solder joints won't make proper connections.
Perhaps write down where each wire is connected.
Some common errors, are:
using incorrect datasheet.
getting all the glcd pins backwards/reversed.
miscounting or mis-connecting wires on the mega do to a parallax error or counting the power rails along the top.
Not properly hooking up the RST pin on the GLCD.
Incorrectly wiring up the POT.
bad solder connections on the header to the GLCD.
mixing up the RS and RST lines on the GLCD. (some glcds use RS instead of DI for that pin)
RS or DI is pin 4 on your glcd. (based on the datasheet you provided)
RST or RESET is pin 17 on your glcd. (based on the datasheet you provided)
In looking at your datasheet, it appears to show pin 1 on the side that is farther from the edge of the glcd module.
The data sheet shows two header connectors on the glcd. One at the top and one on the bottom.
Does your glcd have two header connectors on it?
On the datasheet both sets of connectors have pin 1 farther from the edge than pin 20.
If so, it looks like you may have all your wires backwards since I see what looks like a wire going from
Arduino RESET (a green wire) to what looks like pin 4 on the glcd.
But then I look at the Vee and Vo connections to the POT and those look ok with Vee (glcd pin 18) going to one leg of the pot
and Vo (glcd pin 3) going to the center of the POT.
So I'm confused.......
First verify that the datsheet you have is correct. Look at the back of your glcd and verify that part number
matches the datasheet you have.
Also look for markings on the glcd to fully identify where pin 1 is.
Is the glcd labeled? Does one of the pins looks a bit different than the others? Is there a square pad vs
a rounded pad? That indicates pin 1.
Thank you! And I feel stupid... Indeed I've connected pins in reverse order. I thought pins would be 1-20 from left to right. But on the back side I found little marks saying that it is actually 20-1. I redid wiring the other way and it works!