Skip to content

Commit 48ae5af

Browse files
committed
Added f1024 config, map, etc.
1 parent 46b9c7b commit 48ae5af

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
ESP8266 FastLED WebServer: https://github.com/jasoncoon/esp8266-fastled-webserver
3+
Copyright (C) Jason Coon
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
#pragma once
19+
20+
#if !defined(ESP8266_FASTLED_WEBSERVER_PRODUCT_FIB1024_MINI_H)
21+
#define ESP8266_FASTLED_WEBSERVER_PRODUCT_FIB1024_MINI_H
22+
23+
#if !defined(LED_TYPE)
24+
#define LED_TYPE WS2812B
25+
#endif
26+
#if !defined(COLOR_ORDER)
27+
#define COLOR_ORDER GRB
28+
#endif
29+
#if !defined(NUM_PIXELS)
30+
#define NUM_PIXELS 1024
31+
#endif
32+
#if !defined(AVAILABLE_MILLI_AMPS)
33+
#define AVAILABLE_MILLI_AMPS 10000 // IMPORTANT: set the max milli-Amps of your power supply (4A = 4000mA)
34+
#endif
35+
#if !defined(MAX_MILLI_AMPS_PER_PIXEL)
36+
#define MAX_MILLI_AMPS_PER_PIXEL 48 // IMPORTANT: set to larger value if necessary
37+
#endif
38+
#if !defined(FRAMES_PER_SECOND)
39+
#define FRAMES_PER_SECOND 120
40+
#endif
41+
#if !defined(DEFAULT_PATTERN_INDEX)
42+
#define DEFAULT_PATTERN_INDEX 3
43+
#endif
44+
#if !defined(DEFAULT_BRIGHTNESS_INDEX)
45+
#define DEFAULT_BRIGHTNESS_INDEX 3
46+
#endif
47+
#if !defined(DEFAULT_COLOR_CORRECTION)
48+
#define DEFAULT_COLOR_CORRECTION TypicalSMD5050
49+
#endif
50+
#if !defined(NAME_PREFIX)
51+
#define NAME_PREFIX "Fibonacci1024-"
52+
#endif
53+
#if !defined(PRODUCT_FRIENDLY_NAME)
54+
#define PRODUCT_FRIENDLY_NAME "Fibonacci1024"
55+
#endif
56+
#if !defined(IS_FIBONACCI)
57+
#define IS_FIBONACCI 1
58+
#endif
59+
#if !defined(HAS_COORDINATE_MAP)
60+
#define HAS_COORDINATE_MAP 1
61+
#endif
62+
#if !defined(PARALLEL_OUTPUT_CHANNELS)
63+
#define PARALLEL_OUTPUT_CHANNELS 5
64+
#endif
65+
#if !defined(PIXELS_ON_DATA_PIN_1)
66+
#define PIXELS_ON_DATA_PIN_1 205
67+
#endif
68+
#if !defined(PIXELS_ON_DATA_PIN_2)
69+
#define PIXELS_ON_DATA_PIN_2 205
70+
#endif
71+
#if !defined(PIXELS_ON_DATA_PIN_3)
72+
#define PIXELS_ON_DATA_PIN_3 205
73+
#endif
74+
#if !defined(PIXELS_ON_DATA_PIN_4)
75+
#define PIXELS_ON_DATA_PIN_4 205
76+
#endif
77+
#if !defined(PIXELS_ON_DATA_PIN_5)
78+
#define PIXELS_ON_DATA_PIN_5 204
79+
#endif
80+
81+
#if defined(ARDUINO_ARCH_ESP8266)
82+
// This board uses different data pins....
83+
#if !defined(DATA_PIN)
84+
#define DATA_PIN D5 // d1 mini
85+
#endif
86+
#if !defined(DATA_PIN_2) && PARALLEL_OUTPUT_CHANNELS >= 2
87+
#define DATA_PIN_2 D7 // d1 mini
88+
#endif
89+
#if !defined(DATA_PIN_3) && PARALLEL_OUTPUT_CHANNELS >= 3
90+
#define DATA_PIN_3 D6 // d1 mini
91+
#endif
92+
#if !defined(DATA_PIN_4) && PARALLEL_OUTPUT_CHANNELS >= 4
93+
#define DATA_PIN_4 D1 // d1 mini
94+
#endif
95+
#if !defined(DATA_PIN_5) && PARALLEL_OUTPUT_CHANNELS >= 5
96+
#define DATA_PIN_5 D2 // d1 mini
97+
#endif
98+
#elif defined(ARDUINO_ARCH_ESP32)
99+
#error "F1024 currently only supports ESP8266"
100+
#else
101+
#error "F1024 currently only supports ESP8266"
102+
#endif
103+
104+
#endif // ESP8266_FASTLED_WEBSERVER_PRODUCT_FIB1024_MINI_H

0 commit comments

Comments
 (0)