Removed default parameters from implementation
This commit is contained in:
parent
549bc3d673
commit
09ca988f2b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue