-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig.projbuild
186 lines (149 loc) · 4.66 KB
/
Kconfig.projbuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
menu "LED Display"
choice
prompt "display type"
default LEDDISPLAY_TYPE_64X32_16SCAN
help
The LED display type.
# these work:
config LEDDISPLAY_TYPE_32X16_8SCAN
bool "32x16 1/8 scan"
config LEDDISPLAY_TYPE_32X32_16SCAN
bool "32x32 1/16 scan"
config LEDDISPLAY_TYPE_64X32_16SCAN
bool "64x32 1/16 scan"
config LEDDISPLAY_TYPE_64X64_32SCAN
bool "64x64 1/32 scan"
# these don't work:
#
#config LEDDISPLAY_TYPE_32X16_4SCAN
# bool "32x16 1/4 scan (doesn't work)"
#
#config LEDDISPLAY_TYPE_32X32_8SCAN
# bool "32x32 1/8 scan (doesn't work!)"
#
#config LEDDISPLAY_TYPE_64X32_8SCAN
# bool "64x32 1/8 scan (doesn't work!)"
# what more exists?
endchoice
choice LEDDISPLAY_I2S_FREQ
prompt "I2S frequency"
default LEDDISPLAY_I2S_FREQ_20MHZ
help
generally choose as high as possible / working
config LEDDISPLAY_I2S_FREQ_13MHZ
bool "13.3 MHz"
config LEDDISPLAY_I2S_FREQ_16MHZ
bool "16 MHz"
config LEDDISPLAY_I2S_FREQ_20MHZ
bool "20 MHz"
config LEDDISPLAY_I2S_FREQ_26MHZ
bool "26.6 MHz"
endchoice
config LEDDISPLAY_PRESERVE_RAM_SIZE
int "keep this much (DMA) RAM free [bytes]"
default 64000
config LEDDISPLAY_MIN_FRAME_RATE
int "minimum frame refresh rate [Hz]"
default 50
# see val2pwm.c
choice LEDDISPLAY_CORR_BRIGHT
prompt "correct perceived brightness"
default LEDDISPLAY_CORR_BRIGHT_MODIFIED
config LEDDISPLAY_CORR_BRIGHT_NONE
bool "no brightness correction"
config LEDDISPLAY_CORR_BRIGHT_STRICT
bool "strict brightness correction"
help
colour values < 10 is LED fully off, and only values >= 10 will lit the LED,
using original brightness correction curve
config LEDDISPLAY_CORR_BRIGHT_MODIFIED
bool "modified brightness correction"
help
only colour value 0 is LED fully off, and any value > 0 will lit the LED,
the original correction curve is scaled accordingly
endchoice
config LEDDISPLAY_R1_GPIO
int "GPIO for the R1 signal"
default 2
range 0 35
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_G1_GPIO
int "GPIO for the G1 signal"
default 15
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_B1_GPIO
int "GPIO for the B1 signal"
default 4
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_R2_GPIO
int "GPIO for the R2 signal"
default 16
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_G2_GPIO
int "GPIO for the G2 signal"
default 27
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_B2_GPIO
int "GPIO for the B2 signal"
default 17
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_A_GPIO
int "GPIO for the A signal"
default 5
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_B_GPIO
int "GPIO for the B signal"
default 18
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_C_GPIO
int "GPIO for the C signal"
default 19
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_D_GPIO
int "GPIO for the D signal"
default 21
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_E_GPIO
int "GPIO for the E signal (1/32 scan types only)"
default -1
range -1 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_LAT_GPIO
int "GPIO for the LAT signal"
default 26
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_OE_GPIO
int "GPIO for the OE signal"
default 25
range 0 33
help
typically usable pins are 2, 4-5, 12-33
config LEDDISPLAY_CLK_GPIO
int "GPIO for the CLK signal"
default 22
range 0 33
help
typically usable pins are 2, 4-5, 12-33
endmenu