From 915fcf52d8c9a7e05cc175c37df5a02b3a0bc792 Mon Sep 17 00:00:00 2001 From: NimmLor <admin@nimmervoll.work> Date: Mon, 13 Jul 2020 20:37:17 +0200 Subject: [PATCH] tweaked parameters --- esp8266-fastled-iot-webserver.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esp8266-fastled-iot-webserver.ino b/esp8266-fastled-iot-webserver.ino index dc8542f..3926551 100644 --- a/esp8266-fastled-iot-webserver.ino +++ b/esp8266-fastled-iot-webserver.ino @@ -2897,10 +2897,10 @@ void kickRingVisualizer(CHSV c, bool newValues) { if (avgVolume != 0)cd = ((double)currentVolume) / ((double)avgVolume); if (currentVolume < 33)cd = 0; if (currentVolume > 230) cd += 0.15; - cd -= 0.5; + cd -= 0.2; if (cd <= 0 || currentVolume < 33)cd = 0; - else cd += 0.5; - position += cd * 1.5 * ((double)(map(speed, 0, 255, 10, 300) / 100.0)) * BAND_GROUPING; + else cd += 0.2; + position += cd * 2 * ((double)(map(speed, 0, 255, 10, 300) / 100.0)) * BAND_GROUPING; //Serial.printf("cur: %d, avg: %d, cd: %lf, pos: %lf\n", currentVolume, avgVolume, cd, position); while (position >= NUM_LEDS)position -= NUM_LEDS; -- GitLab