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;