Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 112 lines (88 sloc) 2.018 kB
b9fcfbd RevC board support.
paul authored
1 #include "wl_def.h"
2
3 //*****************************************************************************
4 //
5 // The sequence of commands used to initialize the SSD1329 controller. Each
6 // command is described as follows: there is a byte specifying the number of
7 // bytes in the command sequence, followed by that many bytes of command data.
8 // Note: This initialization sequence is derived from RIT App Note for
9 // the P14201. Values used are from the RIT app note, except where noted.
10 //
11 //*****************************************************************************
12
13 #define RIT_INIT_REMAP 0x52
14 #define RIT_INIT_OFFSET 0x00
15
16 const int oled_height = 94;
17
18 const uint8_t oled_init_strings[] =
19 {
20 // Unlock commands
21 //
22 3, 0xFD, 0x12, 0xe3,
23
24 //
25 // Display off
26 //
27 2, 0xAE, 0xe3,
28
29 //
30 // Icon off
31 //
32 3, 0x94, 0, 0xe3,
33
34 //
35 // Multiplex ratio
36 //
37 3, 0xA8, 95, 0xe3,
38
39 //
40 // Contrast
41 //
42 3, 0x81, 0xb7, 0xe3,
43
44 //
45 // Pre-charge current
46 //
47 3, 0x82, 0x3f, 0xe3,
48
49 //
50 // Display Re-map
51 //
52 3, 0xA0, RIT_INIT_REMAP, 0xe3,
53
54 //
55 // Display Start Line
56 //
57 3, 0xA1, 0, 0xe3,
58
59 //
60 // Display Offset
61 //
62 3, 0xA2, RIT_INIT_OFFSET, 0xe3,
63
64 //
65 // Display Mode Normal
66 //
67 2, 0xA4, 0xe3,
68
69 //
70 // Phase Length
71 //
72 3, 0xB1, 0x11, 0xe3,
73
74 //
75 // Frame frequency
76 //
77 3, 0xB2, 0x23, 0xe3,
78
79 //
80 // Front Clock Divider
81 //
82 3, 0xB3, 0xe2, 0xe3,
83
84 //
85 // Set gray scale table. App note uses default command:
86 // 2, 0xB7, 0xe3
87 // This gray scale attempts some gamma correction to reduce the
88 // the brightness of the low levels.
89 //
90 17, 0xB8, 1, 2, 3, 4, 5, 6, 8, 10, 12, 14, 16, 19, 22, 26, 30, 0xe3,
91
92 //
93 // Second pre-charge period. App note uses value 0x04.
94 //
95 3, 0xBB, 0x01, 0xe3,
96
97 //
98 // Pre-charge voltage
99 //
100 3, 0xBC, 0x3f, 0xe3,
101
102 //
103 // Display ON
104 //
105 2, 0xAF, 0xe3,
106
107 // Done.
108 0
109 };
110
111
Something went wrong with that request. Please try again.