Removed default parameters from implementation

This commit is contained in:
Mal 2024-11-20 23:50:15 +01:00
parent 549bc3d673
commit 09ca988f2b
1 changed files with 2 additions and 2 deletions

View File

@ -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;