驱动JHD240128C液晶的历程记录
一、先是百度得知,公司名称是晶汉达公司,到淘宝主页没有资料
二、偶然在arduino的u8g2中的库中发现
U8G2_T6963_240X128_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable/wr=*/ 17, /*cs/ce=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RD with +5V, FS0 and FS1 with GND
说明是支持此款液晶
三、u8g2库中说明文档:
T6963 240X128
Controller "t6963", Display "240x128" [Description]
- U8G2_T6963_240X128_1_8080(rotation, d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc [, reset]) [page buffer, size = 240 bytes]
- U8G2_T6963_240X128_2_8080(rotation, d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc [, reset]) [page buffer, size = 480 bytes]
- U8G2_T6963_240X128_F_8080(rotation, d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc [, reset]) [full framebuffer, size = 3840 bytes]
说明库中的函数连接的管脚顺序:
管脚的接法:
液晶屏幕 ------------------------- Arduino/其他
1 FG ------------------------- ^ GND
2 GND ------------------------- ^ GND
3 VDD ------------------------- ^ 5V
4 V0 ------------------------- ^ 可变电阻在VEE和GND之间,也可以空接
5 WR ------------------------- 17
6 RD ------------------------- ^ 5V
7 CE ------------------------- 14
8 C/D ------------------------- 15
9 RST ------------------------- 16
10 DB0 ------------------------- 8
11 DB1 ------------------------- 9
12 DB2 ------------------------- 10
33 DB3 ------------------------- 11
14 DB4 ------------------------- 4
15 DB5 ------------------------- 5
16 DB6 ------------------------- 6
17 DB7 ------------------------- 7
18 FS ------------------------- ^ GND L:8×8 H:5*8
19 VEE ------------------------- ^ 液晶负电压,有的可以空接
20 LEDA ------------------------- ^ 液晶背光+5V
21 LEDK ------------------------- ^ 液晶背光+0V,我这里没有
PIN CONNECTIONS
Pin | Symbol | Level | Function |
1 | FG | - | Frame ground |
2 | VSS | 0V | GND |
3 | VDD | +5V | Power supply for logic |
4 | VO | - | Operating voltage for LCD |
5 | /WR | L | Write signal |
6 | /RD | L | Read signal |
7 | /CE | L | Chip enable signal |
8 | C/D | H/L | "L" Data, "H" Instruction code |
9 | /REST | L | Reset signal ,active "L" |
10 | 17 |
DB0 | DB7 |
H/L | Data bus line |
18 | FS | H/L | Font selection: L:8x8,H:6X8 |
19 | VOUT | - | Negative voltage output |
20 | LEDA | +5V | Power supply for LED backlight |
21 | LEDK | 0V |
NOTES:
1. Built-in T6963C controller