Skip to content

Commit bc5d8d0

Browse files
committed
Fix build error, NTPClient library URL.
Slow down Color Waves and Pride patterns, reduce hue increment.
1 parent 27d560d commit bc5d8d0

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

esp8266-fastled-webserver/esp8266-fastled-webserver.ino

+22-11
Original file line numberDiff line numberDiff line change
@@ -1083,19 +1083,25 @@ void fillWithPride(bool useFibonacciOrder)
10831083
static uint16_t sLastMillis = 0;
10841084
static uint16_t sHue16 = 0;
10851085

1086-
uint8_t sat8 = beatsin88( 87, 220, 250);
1087-
uint8_t brightdepth = beatsin88( 341, 96, 224);
1088-
uint16_t brightnessthetainc16 = beatsin88( 203, (25 * 256), (40 * 256));
1089-
uint8_t msmultiplier = beatsin88(147, 23, 60);
1086+
// uint8_t sat8 = beatsin88( 87, 220, 250);
1087+
uint8_t sat8 = beatsin88( 43.5, 220, 250);
1088+
// uint8_t brightdepth = beatsin88( 341, 96, 224);
1089+
uint8_t brightdepth = beatsin88(171, 96, 224);
1090+
// uint16_t brightnessthetainc16 = beatsin88( 203, (25 * 256), (40 * 256));
1091+
uint16_t brightnessthetainc16 = beatsin88( 102, (25 * 256), (40 * 256));
1092+
// uint8_t msmultiplier = beatsin88(147, 23, 60);
1093+
uint8_t msmultiplier = beatsin88(74, 23, 60);
10901094

10911095
uint16_t hue16 = sHue16;//gHue * 256;
1092-
uint16_t hueinc16 = beatsin88(113, 1, 3000);
1096+
// uint16_t hueinc16 = beatsin88(113, 1, 3000);
1097+
uint16_t hueinc16 = beatsin88(57, 1, 128);
10931098

10941099
uint16_t ms = millis();
10951100
uint16_t deltams = ms - sLastMillis ;
10961101
sLastMillis = ms;
10971102
sPseudotime += deltams * msmultiplier;
1098-
sHue16 += deltams * beatsin88( 400, 5, 9);
1103+
// sHue16 += deltams * beatsin88( 400, 5, 9);
1104+
sHue16 += deltams * beatsin88( 200, 5, 9);
10991105
uint16_t brightnesstheta16 = sPseudotime;
11001106

11011107
for ( uint16_t i = 0 ; i < NUM_PIXELS; i++) {
@@ -1254,18 +1260,23 @@ void fillWithColorwaves( CRGB* ledarray, uint16_t numleds, const CRGBPalette16&
12541260
static uint16_t sHue16 = 0;
12551261

12561262
// uint8_t sat8 = beatsin88( 87, 220, 250);
1257-
uint8_t brightdepth = beatsin88( 341, 96, 224);
1258-
uint16_t brightnessthetainc16 = beatsin88( 203, (25 * 256), (40 * 256));
1259-
uint8_t msmultiplier = beatsin88(147, 23, 60);
1263+
// uint8_t brightdepth = beatsin88( 341, 96, 224);
1264+
uint8_t brightdepth = beatsin88(171, 96, 224);
1265+
// uint16_t brightnessthetainc16 = beatsin88( 203, (25 * 256), (40 * 256));
1266+
uint16_t brightnessthetainc16 = beatsin88( 102, (25 * 256), (40 * 256));
1267+
// uint8_t msmultiplier = beatsin88(147, 23, 60);
1268+
uint8_t msmultiplier = beatsin88(74, 23, 60);
12601269

12611270
uint16_t hue16 = sHue16;//gHue * 256;
1262-
uint16_t hueinc16 = beatsin88(113, 300, 1500);
1271+
// uint16_t hueinc16 = beatsin88(113, 300, 1500);
1272+
uint16_t hueinc16 = beatsin88(57, 1, 128);
12631273

12641274
uint16_t ms = millis();
12651275
uint16_t deltams = ms - sLastMillis ;
12661276
sLastMillis = ms;
12671277
sPseudotime += deltams * msmultiplier;
1268-
sHue16 += deltams * beatsin88( 400, 5, 9);
1278+
// sHue16 += deltams * beatsin88( 400, 5, 9);
1279+
sHue16 += deltams * beatsin88( 200, 5, 9);
12691280
uint16_t brightnesstheta16 = sPseudotime;
12701281

12711282
for ( uint16_t i = 0 ; i < numleds; i++) {

platformio.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ lib_deps =
110110
fastled/FastLED @ 3.4.0
111111
bblanchon/ArduinoJson @ ^6.18.5
112112
lorol/LITTLEFS_esp32 @ ^1.0.6
113-
https://github.com/arduino-libraries/NTPClient.git @ 3.2.0
113+
; https://github.com/arduino-libraries/NTPClient.git @ 3.2.0
114+
NTPClient=https://github.com/arduino-libraries/NTPClient/archive/refs/tags/3.2.0.zip
114115
https://github.com/tzapu/WiFiManager.git @ ^2.0.4-beta
115116

116117
[esp8266]

0 commit comments

Comments
 (0)