The Graphical LCDs are connected as follows.

1 - +5V
2 - GND
3 - Contrast Pot
4 - RD0
5 - RD1
6 - RD2
7 - RD3
8 - RD4
9 - RD5
10 - RD6
11 - RD7
12 - RC0
13 - RC1
14 - 10K - +5v
15 - RC4
16 - RC2
17 - RC3
18 - Contrast Pot
19 - +5V
20 - 22R GND


At the top of the Custom_Code.C file is a section of defines that specify the pin connections change this as needed.

//Common defines
#define MX_DATA_PORT 		portd	//%a
#define MX_DATA_TRIS		trisd	//%b
#define MX_CONTROL_PORT		portc	//%c
#define MX_CONTROL_TRIS		trisc	//%d
#define MX_CS1			0	//%e
#define MX_CS2			1	//%f
#define MX_DAT_INST		2	//%g
#define MX_ENABLE		3	//%h
#define MX_READ_WRITE		4	//%i


Flowcode Functions are fairly straightforward.