Controlling SparkFun "Graphic LCD 160x128 Huge" from Arduino
Hardware:
- Monochrome LCD 160x128 with T6963C controller: http://www.sparkfun.com/products/8799
- Arduino Uno
- 10K potentiometer
- Misc wires
LCD connection
LCD pin # | Symbol | Function | Arduino Uno pin |
1 | FG | FRAME GROUND | GND |
2 | VSS | GND | GND |
3 | VDD | +5V | +5V |
4 | VO | Contrast Adjust | Pot (middle pin) |
5 | VEE | NEGATIVE VOLTAGE OUTPUT | Pot |
6 | /WR | DATA WRITE | A0 |
7 | /RD | DATA READ | A1 |
8 | /CE | CHIP ENABLE | A2 |
9 | C/D | COMMAND/DATA SELECTION | A3 |
10 | /HALT | CLOCK OPERATING STOP SIGNAL | |
11 | /RST | RESET | |
12 | D0 | Data 0 | 2 |
13 | D1 | Data 1 | 3 |
14 | D2 | Data 2 | 4 |
15 | D3 | Data 3 | 5 |
16 | D4 | Data 4 | 6 |
17 | D5 | Data 5 | 7 |
18 | D6 | Data 6 | 8 |
19 | D7 | Data 7 | 9 |
20 | N/C | NO CONNECTION | |
21 | LEDA | LED BACKLIGHT POWER SUPPLY (+5V) | +5V |
22 | LEDK | LED BACKLIGHT POWER SUPPLY (0V) | GND |
Software:
- Updated u8glib library (the original one did not support 160x128 reolution): http://code.google.com/p/u8glib/
- BMP to C array converter (C# application)
Installation:
- Copy libraries/U8glib to your Arduino library folder
- Run an example Arduino_160x128
TODO: Merge my changes to u8glib project?