FreeCalypso > hg > freecalypso-hwlab
comparison lcdtest/startek.c @ 24:94521a02c33d
lcdtest: the truth about Startek and Crystalfontz LCDs
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 14 Apr 2018 06:43:23 +0000 |
parents | lcdtest/init.c@2e4f27ea7067 |
children |
comparison
equal
deleted
inserted
replaced
23:2127e6fdeab2 | 24:94521a02c33d |
---|---|
1 /* | |
2 * ST7775R register init for Startek LCDs KD020C-1 V2 and KD020C-2A, | |
3 * the former of which is also sold by Crystalfontz as CFAF176220U-020T. | |
4 */ | |
5 | |
6 init_startek() | |
7 { | |
8 /* basic settings */ | |
9 write_ir(0x01); | |
10 write_dr(0x011C); | |
11 write_ir(0x02); | |
12 write_dr(0x0100); | |
13 write_ir(0x03); | |
14 write_dr(0x1030); | |
15 write_ir(0x0F); | |
16 write_dr(0x0001); | |
17 write_ir(0x10); | |
18 write_dr(0x0000); | |
19 write_ir(0x11); | |
20 write_dr(0x1000); | |
21 /* gamma control registers */ | |
22 write_ir(0x50); | |
23 write_dr(0x0203); | |
24 write_ir(0x51); | |
25 write_dr(0x0A09); | |
26 write_ir(0x52); | |
27 write_dr(0x0005); | |
28 write_ir(0x53); | |
29 write_dr(0x1021); | |
30 write_ir(0x54); | |
31 write_dr(0x0602); | |
32 write_ir(0x55); | |
33 write_dr(0x0003); | |
34 write_ir(0x56); | |
35 write_dr(0x0703); | |
36 write_ir(0x57); | |
37 write_dr(0x0507); | |
38 write_ir(0x58); | |
39 write_dr(0x1021); | |
40 write_ir(0x59); | |
41 write_dr(0x0703); | |
42 /* VCOM */ | |
43 write_ir(0xB0); | |
44 write_dr(0x2501); | |
45 /* turn it on! */ | |
46 write_ir(0x07); | |
47 write_dr(0x1017); | |
48 return(0); | |
49 } |