forked from Makuna/NeoPixelBus
NEOPIXEBUS_NO_STL (#314)
This commit is contained in:
1 parent
31dafcddf6
commit
a0fab862fb
9 files changed
+18
-12
No files matched your search
@@ -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