From bc5d8d09b79d89cf69347f4d5029c4b4b4ac21db Mon Sep 17 00:00:00 2001 From: Jason Coon <3598755+jasoncoon@users.noreply.github.com> Date: Tue, 12 Jul 2022 07:36:08 -0500 Subject: [PATCH] Fix build error, NTPClient library URL. Slow down Color Waves and Pride patterns, reduce hue increment. --- .../esp8266-fastled-webserver.ino | 33 ++++++++++++------- platformio.ini | 3 +- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/esp8266-fastled-webserver/esp8266-fastled-webserver.ino b/esp8266-fastled-webserver/esp8266-fastled-webserver.ino index 94190fbe..c7d974f2 100644 --- a/esp8266-fastled-webserver/esp8266-fastled-webserver.ino +++ b/esp8266-fastled-webserver/esp8266-fastled-webserver.ino @@ -1083,19 +1083,25 @@ void fillWithPride(bool useFibonacciOrder) static uint16_t sLastMillis = 0; static uint16_t sHue16 = 0; - uint8_t sat8 = beatsin88( 87, 220, 250); - uint8_t brightdepth = beatsin88( 341, 96, 224); - uint16_t brightnessthetainc16 = beatsin88( 203, (25 * 256), (40 * 256)); - uint8_t msmultiplier = beatsin88(147, 23, 60); + // uint8_t sat8 = beatsin88( 87, 220, 250); + uint8_t sat8 = beatsin88( 43.5, 220, 250); + // uint8_t brightdepth = beatsin88( 341, 96, 224); + uint8_t brightdepth = beatsin88(171, 96, 224); + // uint16_t brightnessthetainc16 = beatsin88( 203, (25 * 256), (40 * 256)); + uint16_t brightnessthetainc16 = beatsin88( 102, (25 * 256), (40 * 256)); + // uint8_t msmultiplier = beatsin88(147, 23, 60); + uint8_t msmultiplier = beatsin88(74, 23, 60); uint16_t hue16 = sHue16;//gHue * 256; - uint16_t hueinc16 = beatsin88(113, 1, 3000); + // uint16_t hueinc16 = beatsin88(113, 1, 3000); + uint16_t hueinc16 = beatsin88(57, 1, 128); uint16_t ms = millis(); uint16_t deltams = ms - sLastMillis ; sLastMillis = ms; sPseudotime += deltams * msmultiplier; - sHue16 += deltams * beatsin88( 400, 5, 9); + // sHue16 += deltams * beatsin88( 400, 5, 9); + sHue16 += deltams * beatsin88( 200, 5, 9); uint16_t brightnesstheta16 = sPseudotime; for ( uint16_t i = 0 ; i < NUM_PIXELS; i++) { @@ -1254,18 +1260,23 @@ void fillWithColorwaves( CRGB* ledarray, uint16_t numleds, const CRGBPalette16& static uint16_t sHue16 = 0; // uint8_t sat8 = beatsin88( 87, 220, 250); - uint8_t brightdepth = beatsin88( 341, 96, 224); - uint16_t brightnessthetainc16 = beatsin88( 203, (25 * 256), (40 * 256)); - uint8_t msmultiplier = beatsin88(147, 23, 60); + // uint8_t brightdepth = beatsin88( 341, 96, 224); + uint8_t brightdepth = beatsin88(171, 96, 224); + // uint16_t brightnessthetainc16 = beatsin88( 203, (25 * 256), (40 * 256)); + uint16_t brightnessthetainc16 = beatsin88( 102, (25 * 256), (40 * 256)); + // uint8_t msmultiplier = beatsin88(147, 23, 60); + uint8_t msmultiplier = beatsin88(74, 23, 60); uint16_t hue16 = sHue16;//gHue * 256; - uint16_t hueinc16 = beatsin88(113, 300, 1500); + // uint16_t hueinc16 = beatsin88(113, 300, 1500); + uint16_t hueinc16 = beatsin88(57, 1, 128); uint16_t ms = millis(); uint16_t deltams = ms - sLastMillis ; sLastMillis = ms; sPseudotime += deltams * msmultiplier; - sHue16 += deltams * beatsin88( 400, 5, 9); + // sHue16 += deltams * beatsin88( 400, 5, 9); + sHue16 += deltams * beatsin88( 200, 5, 9); uint16_t brightnesstheta16 = sPseudotime; for ( uint16_t i = 0 ; i < numleds; i++) { diff --git a/platformio.ini b/platformio.ini index 51075b27..f5e69306 100644 --- a/platformio.ini +++ b/platformio.ini @@ -110,7 +110,8 @@ lib_deps = fastled/FastLED @ 3.4.0 bblanchon/ArduinoJson @ ^6.18.5 lorol/LITTLEFS_esp32 @ ^1.0.6 - https://github.com/arduino-libraries/NTPClient.git @ 3.2.0 + ; https://github.com/arduino-libraries/NTPClient.git @ 3.2.0 + NTPClient=https://github.com/arduino-libraries/NTPClient/archive/refs/tags/3.2.0.zip https://github.com/tzapu/WiFiManager.git @ ^2.0.4-beta [esp8266]