|
39 | 39 | #define COLOR_ORDER RGB
|
40 | 40 | #endif
|
41 | 41 |
|
42 |
| -// NUM_PIXELS is the number of pixels to be |
| 42 | +// NUM_PIXELS is the total number of pixels to be generated / output |
43 | 43 | #if !defined(NUM_PIXELS)
|
44 | 44 | #define NUM_PIXELS 200
|
45 | 45 | #endif
|
| 46 | +// AVAILABLE_MILLI_AMPS is based on the power supply. Recommended to use no more than 80% of actual rated maximum. |
46 | 47 | #if !defined(AVAILABLE_MILLI_AMPS)
|
47 | 48 | #error #define AVAILABLE_MILLI_AMPS x2000x // IMPORTANT: set the max milli-Amps of your power supply (4A = 4000mA)
|
48 | 49 | #endif
|
| 50 | + |
| 51 | +// MAX_MILLI_AMPS_PER_PIXEL is used by FastLED to reduce change of exceeding total available milliamps. |
49 | 52 | #if !defined(MAX_MILLI_AMPS_PER_PIXEL)
|
50 | 53 | #define MAX_MILLI_AMPS_PER_PIXEL 60 // IMPORTANT: set to larger value if necessary
|
51 | 54 | #endif
|
| 55 | + |
| 56 | +// FRAMES_PER_SECOND is a frame LIMIT per second. This is approximate. |
52 | 57 | #if !defined(FRAMES_PER_SECOND)
|
53 | 58 | #define FRAMES_PER_SECOND 120
|
54 | 59 | #endif
|
| 60 | + |
| 61 | +// DEFAULT_PATTERN_INDEX allows different products to default to different patterns |
55 | 62 | #if !defined(DEFAULT_PATTERN_INDEX)
|
56 | 63 | #define DEFAULT_PATTERN_INDEX 0
|
57 | 64 | #endif
|
| 65 | + |
| 66 | +// DEFAULT_BRIGHTNESS_INDEX allows different products to default to different brightness (e.g., from brightness[5] array) |
58 | 67 | #if !defined(DEFAULT_BRIGHTNESS_INDEX)
|
59 | 68 | #define DEFAULT_BRIGHTNESS_INDEX 3
|
60 | 69 | #endif
|
|
134 | 143 | // ...
|
135 | 144 | // #define PIXELS_ON_DATA_PIN_n zc
|
136 | 145 | //
|
137 |
| -// Up to the number of parallel outputs, |
138 |
| -// *AND* the board file must support the required number of channels |
139 |
| -// by defining the corresponding pins as follows: |
| 146 | +// *AND* the controller must support the required number of channels. |
| 147 | +// |
| 148 | +// The controller header file will define default values for the data pins, |
| 149 | +// by defining the following symbols: |
140 | 150 | //
|
141 | 151 | // #define DATA_PIN w
|
142 | 152 | // #define DATA_PIN_2 x
|
143 | 153 | // #define DATA_PIN_3 y
|
144 | 154 | // ...
|
145 | 155 | // #define DATA_PIN_n z
|
146 | 156 | //
|
147 |
| - |
| 157 | +// These can be overridden from the board-default values by defining these |
| 158 | +// values in the product header template. |
| 159 | +// |
| 160 | +// See Fibonacci512 and ESPTHING as examples of multi-channel outputs. |
| 161 | +// |
148 | 162 | #if !defined(PARALLEL_OUTPUT_CHANNELS)
|
149 | 163 | #define PARALLEL_OUTPUT_CHANNELS 1
|
150 | 164 | #endif
|
151 |
| -// Example from Fibonacci512: |
152 |
| -// |
153 |
| -// #if !defined(PARALLEL_OUTPUT_CHANNELS) |
154 |
| -// #define PARALLEL_OUTPUT_CHANNELS 4 |
155 |
| -// #endif |
156 |
| -// #if !defined(PIXELS_ON_DATA_PIN_1) |
157 |
| -// #define PIXELS_ON_DATA_PIN_1 121 |
158 |
| -// #endif |
159 |
| -// #if !defined(PIXELS_ON_DATA_PIN_2) |
160 |
| -// #define PIXELS_ON_DATA_PIN_2 120 |
161 |
| -// #endif |
162 |
| -// #if !defined(PIXELS_ON_DATA_PIN_3) |
163 |
| -// #define PIXELS_ON_DATA_PIN_3 121 |
164 |
| -// #endif |
165 |
| -// #if !defined(PIXELS_ON_DATA_PIN_4) |
166 |
| -// #define PIXELS_ON_DATA_PIN_4 150 |
167 |
| -// #endif |
168 |
| - |
169 |
| -// By default, no IR support is included. Define ENABLE_IR to enable IR support. |
| 165 | + |
| 166 | +// // By default, no IR support is included. Define ENABLE_IR to enable IR support. |
170 | 167 | // #define ENABLE_IR
|
171 |
| -// NOTE: When ENABLE_IR is defined, can also override controller-specific default: |
172 |
| -// #define IR_RECV_PIN D99 |
| 168 | +// // When ENABLE_IR is defined, can also override controller-specific default: |
| 169 | +// // #define IR_RECV_PIN D99 |
173 | 170 |
|
174 | 171 |
|
175 | 172 |
|
|
0 commit comments