HI all, just want to make note of my success in hooking up one of these displays to a mega and how i did it,
not that its much difficulty, just to say i did...
I found and use u8glib library as it is most recent and far developed...
download: Google Code Archive - Long-term storage for Google Code Project Hosting.
open hello world example: uncomment
//U8GLIB_T6963_240X128 u8g(8, 9, 10, 11, 4, 5, 6, 7, 14, 15, 17, 18, 16); // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7, cs=14, a0=15, wr=17, rd=18, reset=16
(and change pins if needed... i used the following)
U8GLIB_T6963_240X128 u8g(49, 48, 47, 46, 45, 44, 43, 42, 37, 36, 35, 34, 33); // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7, cs=14, a0=15, wr=17, rd=18, reset=16
also uncomment in setup() (if you have it up the way i do pictured)
u8g.setRot180();
here is the pin mapping on my unit off ebay,
LCD PIN | LCD NAME | u8glib | 2560 |
---|---|---|---|
1 | FG | GND | |
2 | GND | GND | |
3 | VDD | 5V | |
4 | VO | 50k POT WIPER (Leg 2) | |
5 | /WR | wr | 35 |
6 | /RD | rd | 34 |
7 | /CE | cs | 37 |
8 | C/D | 36 | |
9 | RST | reset | 33 |
10 | D0 | D0 | 49 |
11 | D1 | D1 | 48 |
12 | D2 | D2 | 47 |
13 | D3 | D3 | 46 |
14 | D4 | D4 | 45 |
15 | D5 | D5 | 44 |
16 | D6 | D6 | 43 |
17 | D7 | D7 | 42 |
18 | FS1 | GND | |
19 | VEE | 50k POT LEG 1 (Leg 3 to 5v) | |
20 | LEDA | 3.3V (5V Too Bright) | |
21 | LEDK | GND |
*50k Pot is your typical lcd contrast control