@@ -63,7 +63,6 @@ NTPClient timeClient(ntpUDP, "pool.ntp.org", utcOffsetInSeconds);
63
63
64
64
#include " FSBrowser.h"
65
65
66
- #define DATA_PIN D5
67
66
#define LED_TYPE WS2812B
68
67
#define COLOR_ORDER GRB
69
68
#define NUM_LEDS 512
@@ -111,7 +110,7 @@ CRGBPalette16 gTargetPalette( gGradientPalettes[0] );
111
110
112
111
CRGBPalette16 IceColors_p = CRGBPalette16(CRGB::Black, CRGB::Blue, CRGB::Aqua, CRGB::White);
113
112
114
- uint8_t currentPatternIndex = 0 ; // Index number of which pattern is current
113
+ uint8_t currentPatternIndex = 3 ; // Index number of which pattern is current
115
114
uint8_t autoplay = 0 ;
116
115
117
116
uint8_t autoplayDuration = 10 ;
@@ -290,10 +289,13 @@ void setup() {
290
289
Serial.begin (115200 );
291
290
Serial.setDebugOutput (true );
292
291
293
- FastLED.addLeds <LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS); // for WS2812 (Neopixel)
294
- // FastLED.addLeds<LED_TYPE,DATA_PIN,CLK_PIN,COLOR_ORDER>(leds, NUM_LEDS); // for APA102 (Dotstar)
292
+ FastLED.addLeds <LED_TYPE, D7, COLOR_ORDER>(leds, 0 , 121 ).setCorrection (TypicalLEDStrip);
293
+ FastLED.addLeds <LED_TYPE, D6, COLOR_ORDER>(leds, 121 , 120 ).setCorrection (TypicalLEDStrip);
294
+ FastLED.addLeds <LED_TYPE, D8, COLOR_ORDER>(leds, 241 , 121 ).setCorrection (TypicalLEDStrip);
295
+ FastLED.addLeds <LED_TYPE, D5, COLOR_ORDER>(leds, 362 , 150 ).setCorrection (TypicalLEDStrip);
296
+
295
297
FastLED.setDither (false );
296
- // FastLED.setCorrection(TypicalSMD5050);
298
+ FastLED.setCorrection (TypicalSMD5050);
297
299
FastLED.setBrightness (brightness);
298
300
FastLED.setMaxPowerInVoltsAndMilliamps (5 , MILLI_AMPS);
299
301
fill_solid (leds, NUM_LEDS, CRGB::Black);
@@ -970,6 +972,9 @@ void writeAndCommitSettings()
970
972
EEPROM.write (10 , twinkleDensity);
971
973
EEPROM.write (11 , cooling);
972
974
EEPROM.write (12 , sparking);
975
+ EEPROM.write (13 , coolLikeIncandescent);
976
+ EEPROM.write (14 , showClock);
977
+ EEPROM.write (15 , clockBackgroundFade);
973
978
974
979
EEPROM.write (511 , 55 );
975
980
EEPROM.commit ();
0 commit comments