Skip to content

Commit

Permalink
Fix build error, NTPClient library URL.
Browse files Browse the repository at this point in the history
Slow down Color Waves and Pride patterns, reduce hue increment.
jasoncoon committed Jul 12, 2022
1 parent 27d560d commit bc5d8d0
Showing 2 changed files with 24 additions and 12 deletions.
33 changes: 22 additions & 11 deletions esp8266-fastled-webserver/esp8266-fastled-webserver.ino
Original file line number Diff line number Diff line change
@@ -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++) {
3 changes: 2 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit bc5d8d0

Please sign in to comment.