Zweiter Regler „Effekt 2“: zwei Parameter je Effekt

- Ohne Angabe Tempo und Farbe (66 Effekte); Musik: Empfindlichkeit und
  Farbe; Feuer: Hitze und Farbe; Gewitter, Regen, Schnee, Weihnachtsbaum,
  Geschenk, Fraktalwolken: zweiter Regler Tempo
- Eigene Regler 2: Blitzlicht/Blaulicht Nachleuchten (kein Tempo, damit
  sie nicht schneller blitzen), Lampe Weiß (weißer oder satter)
- Tempo, Farbe und Empfindlichkeit wirken, egal auf welchem Regler
- API: param2 in /api/state und /api/effects; gespeichert als id=w1:w2
  (alte Form id=w1 wird weiter gelesen)
- App: zweiter Regler, Spezialeffekt-Knöpfe etwas flacher, damit alles
  ohne Scrollen passt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mikeandClaude Opus 5.5 committed 2026-11-17 16:12:12 +01:00
1 parent a8fee0e960
commit 9089fd6431
12 files changed
+155 -89

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ void renderStrobe(uint32_t now) {
fresh = false;
next = now;
}
fadeToBlackBy(leds, NUM_LEDS, 40);
fadeToBlackBy(leds, NUM_LEDS, max(3, 80 - fxParam2 * 5 / 16)); // Regler 2: Nachleuchten
if (int32_t(now - next) < 0) return;
next = now + 400;
hue += 47 + random8(40);
@@ -219,7 +219,7 @@ void renderPolice(uint32_t now) {
uint16_t t = (now - fxStart) % 1200;
bool blue = t < 80 || (t >= 160 && t < 240);
bool red = (t >= 600 && t < 680) || (t >= 760 && t < 840);
fadeToBlackBy(leds, NUM_LEDS, 80);
fadeToBlackBy(leds, NUM_LEDS, max(4, 160 - fxParam2 * 5 / 8)); // Regler 2: Nachleuchten
FOR_XYZ {
if (x < 2 && blue) at(x, y, z) = CRGB(0, 0, highlight);
if (x > 2 && red) at(x, y, z) = CRGB(highlight, 0, 0);