From 09ca988f2b15eeadcafae0e2fd1cc1a8a8d66442 Mon Sep 17 00:00:00 2001 From: Mal Date: Wed, 20 Nov 2024 23:50:15 +0100 Subject: [PATCH] Removed default parameters from implementation --- SimpLedRGB.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SimpLedRGB.cpp b/SimpLedRGB.cpp index 702356d..cd1c6ca 100644 --- a/SimpLedRGB.cpp +++ b/SimpLedRGB.cpp @@ -76,7 +76,7 @@ void SimpLedRGB::rainbowCycle(int cycleDurationMillis) translateToColor(COLOR_RED, cycleDurationMillis); } -void SimpLedRGB::candle(const Color &color, float wind = 0.5) +void SimpLedRGB::candle(const Color &color, float wind) { int duration = random(250, 6000 - 5000 * wind); float intensity = (float)random(100 + 400 * wind, 300 + 600 * wind) / 1000.0; @@ -101,7 +101,7 @@ void SimpLedRGB::candle(const Color &color, float wind = 0.5) } } -void SimpLedRGB::pulse(const Color &color, float timesPerSecond = 1.0, float amplitudeMin = 0.0, float amplitudeMax = 1.0) +void SimpLedRGB::pulse(const Color &color, float timesPerSecond, float amplitudeMin, float amplitudeMax) { float amplitude = (1.0 + sin(PULSE_PER_SECOND * millis() * timesPerSecond)) / 2.0; float brightness = amplitudeMin + (amplitudeMax - amplitudeMin) * amplitude;