Reverse Direction (FXOPTS) was not working for Fire 2012 custom animation
This commit is contained in:
bpohvoodoo
2019-03-18 20:30:40 +01:00
parent 3e66fc21bb
commit 92b3959a6a
3 changed files with 2 additions and 3 deletions
+1
View File
@@ -312,6 +312,7 @@ void initStrip(uint16_t stripSize = WS2812FXStripSettings.stripSize, char RGBOrd
#if defined(CUSTOM_WS2812FX_ANIMATIONS)
strip->setCustomMode(0, F("Fire 2012"), myCustomEffect0);
//strip->setCustomMode(1, F("CustEffect"), myCustomEffect1);
gReverseDirection = (WS2812FXStripSettings.fxoptions & 128);
#endif
#if defined(ENABLE_E131)
/*
+1 -1
View File
@@ -147,7 +147,7 @@ struct ledstate // Data structure to store a state of a single le
uint8_t red;
uint8_t green;
uint8_t blue;
uint8_t white; // is abused for tv_mode and custom animations as it is already here and white channel is not used there.
uint8_t white;
};
typedef struct ledstate LEDState; // Define the datatype LEDState
@@ -9,8 +9,6 @@ More info on how to create custom aniamtions for WS2812FX: https://github.com/ki
#include <FastLED.h> //https://github.com/FastLED/FastLED
//byte* heat;
/*
* paste in the Fire2012 code with a small edit at the end which uses the
* setPixelColor() function to copy the color data to the ws2812fx instance.