FreeCalypso > hg > freecalypso-hwlab
comparison lunalcd/startek.c @ 65:cdf2c99e5025
lunalcd project started
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 19 Mar 2020 01:31:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
64:6d02f30e35ad | 65:cdf2c99e5025 |
---|---|
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 lcd_init_seq() | |
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 } |