forked from Makuna/NeoPixelBus
NEOPIXEBUS_NO_STL (#314)
This commit is contained in:
@@ -53,7 +53,7 @@ NeoPixelAnimator animations(PixelCount, NEO_CENTISECONDS);
|
||||
// NEO_DECASECONDS 10000 // ~7.5 days, 10 second updates
|
||||
//
|
||||
|
||||
#ifdef ARDUINO_ARCH_AVR
|
||||
#if defined(NEOPIXEBUS_NO_STL)
|
||||
// for AVR, you need to manage the state due to lack of STL/compiler support
|
||||
// for Esp8266 you can define the function using a lambda and state is created for you
|
||||
// see below for an example
|
||||
@@ -158,7 +158,7 @@ void SetupAnimationSet()
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef ARDUINO_ARCH_AVR
|
||||
#if defined(NEOPIXEBUS_NO_STL)
|
||||
// each animation starts with the color that was present
|
||||
animationState[pixel].StartingColor = originalColor;
|
||||
// and ends with a random color
|
||||
|
||||
Reference in New Issue
Block a user