FastLED 3.9.7
Loading...
Searching...
No Matches
led_layout_array.cpp
1
2#include "./led_layout_array.h"
3#include "./settings.h"
4
5LedColumns LedCurtinArray() {
6 static const int kLedRepeatTable[] = {
7 22,
8 22,
9 22,
10 22,
11 22,
12 22,
13 22,
14 22,
15 22,
16 22,
17 22,
18 22,
19 22,
20 22,
21 22,
22 22,
23 22,
24 22,
25 22,
26 22,
27 22,
28 22,
29 22,
30 22,
31 22,
32 22,
33 22,
34 22,
35 22,
36 22,
37 22,
38 22,
39 22,
40 22,
41 22,
42 22,
43 22,
44 22,
45 22,
46 22,
47 22,
48 22,
49 22,
50 22,
51 22,
52 22,
53 22,
54 22,
55 22,
56 22,
57 22,
58 22,
59 22,
60 22,
61 22,
62 22,
63 22,
64 22,
65 22,
66 22,
67 22,
68 22,
69 22,
70 22,
71 22,
72 22,
73 22,
74 22,
75 22,
76 22,
77 22,
78 22,
79 22,
80 22,
81 22,
82 22,
83 22,
84 22,
85 22,
86 22,
87 22,
88 22,
89 22,
90 22,
91 22,
92 22,
93 22,
94 22
95 };
96 const int* out = kLedRepeatTable;
97 const int size = sizeof(kLedRepeatTable) / sizeof(*kLedRepeatTable);
98 return LedColumns(out, size);
99}
100
101LedColumns LedLuminescentArray() {
103 // Repeat data for the LED piano.
104 static const int kLedRepeatTable[] = {
105 25,
106 25,
107 26,
108 26,
109 27,
110 27,
111 28,
112 27,
113 28,
114 28,
115 28,
116 28,
117 28,
118 28,
119 28,
120 28,
121 28,
122 28,
123 28,
124 28,
125 28,
126 28,
127 28,
128 28,
129 28,
130 28,
131 28,
132 28,
133 28,
134 28,
135 28,
136 28,
137 28,
138 28,
139 28,
140 28,
141 28,
142 28,
143 28,
144 28,
145 28,
146 28,
147 28,
148 27,
149 28,
150 27,
151 27,
152 26,
153 26,
154 25,
155 25,
156 24,
157 24,
158 23,
159 23,
160 21,
161 20,
162 18,
163 17,
164 15,
165 14,
166 12,
167 11,
168 10,
169 10,
170 9,
171 9,
172 8,
173 8,
174 7,
175 7,
176 6,
177 6,
178 5,
179 6,
180 5,
181 5,
182 4,
183 5,
184 4,
185 4,
186 3,
187 4,
188 3,
189 3,
190 2,
191 2,
192 1
193 };
194 const int* out = kLedRepeatTable;
195 const int size = sizeof(kLedRepeatTable) / sizeof(*kLedRepeatTable);
196 return LedColumns(out, size);
197}
198
199LedColumns LedLayoutArray() {
200 if (kUseLedCurtin) {
201 return LedCurtinArray();
202 } else {
203 return LedLuminescentArray();
204 }
205}