esp8266Compiled

const & in template causes near 100 bytes extra code, so removed
This commit is contained in:
Makuna committed 2016-03-20 11:20:50 -07:00
1 parent 3dbfae7fc4
commit 0b6862852c
5 files changed
+23 -4

No files matched your search

+3 -3
View File
@@ -19,8 +19,8 @@ NeoPixelBus<NeoGrbFeature, Neo800KbpsMethod> strip(PixelCount, PixelPin);
// uncomment only one of these to compare memory use or speed
//
// NeoGamma<NeoGammaEquationMethod> gamma;
NeoGamma<NeoGammaTableMethod> gamma;
// NeoGamma<NeoGammaEquationMethod> colorGamma;
NeoGamma<NeoGammaTableMethod> colorGamma;
void DrawPixels(bool corrected, HslColor startColor, HslColor stopColor)
{
@@ -30,7 +30,7 @@ void DrawPixels(bool corrected, HslColor startColor, HslColor stopColor)
RgbColor color = HslColor::LinearBlend(startColor, stopColor, progress);
if (corrected)
{
color = gamma.Correct(color);
color = colorGamma.Correct(color);
}
strip.SetPixelColor(index, color);
}