GLCD with Arduino Nano

Hi everyone, I'm trying to connect this (Graphic LCD 128x64 STN LED Backlight - LCD-00710 - SparkFun Electronics) to a Arduino Nano.
The glcd is getting on and I can see the color but noting happen with all the exemple program in the GLCD version 3.0 library.
Can some one help me?
I did a small pcb with oshpark and everything is plug on it.

Hope somebody will be able to help me! Thk

Ok I found that it was a problem of wiring.
So i need your help.
Since my pcb is already done, i will like to know how to tell to the glcd that the analog7 is analog 0 and etc.

Thk

There seems to be different versions of nano boards out there.
They seem to flip around the analog pins.
What I don't know is if they are really flipped electrically or are the labels on the PCB different.

The issue is for the digital side.
Physical pin 19 is the real internal analog channel 6 and
physical pin 21 is the real internal analog channel 7.

The problem is that physical pins 19 and 21 can not be used for digital outputs.
There is no way to control those pins from the PORT C register.

While you can reconfigure what pins the library uses to control the glcd
by modifying the pin config file,
you can not use two of the analog pins for digital control because there
are only 20 digital pins.
This means that while Arduino A6 and A7 can be used for analog inputs,
you cannot use them for digital outputs.
i.e. there is no Arduino digital pin 20 and 21.

I don't know how your nano is wired up but if any of the connections
to the glcd are using physical pin 19 or 21, then there is no way this
can be fixed in s/w.

For information about remapping pins see the HTML documentation that comes with the library.
Section "Configuration".

--- bill

Thank you very much Bill. You clarify everything.
I guess I will have to redo my pcb. :frowning: but that the life. We learn! :wink:

Maybe do a cut & jump patch on this board to get things working as a test before committing
to another rev of the PCB.
It shouldn't be that difficult as you can cut the traces then solder wires
to the pins on the bottom of the PCB directly to the header socket pins for the nano and LCD.

It would be 5 cuts and soldering 5 new wires if you wanted to re-wire it to match
the pin config file.
But if you only wanted to avoid the A6 and A7 pins, then it is only 2 cuts/wires
and then changing a few pins in the pin config file.

If it were me, I'd do the 5 wires so that it matched the config file which is probably
what you want for the PCB re-spin.
That way you can fully test it before committing to the new layout.

--- bill