Bugfix
Reverse Direction (FXOPTS) was not working for Fire 2012 custom animation
This commit is contained in:
@@ -312,6 +312,7 @@ void initStrip(uint16_t stripSize = WS2812FXStripSettings.stripSize, char RGBOrd
|
|||||||
#if defined(CUSTOM_WS2812FX_ANIMATIONS)
|
#if defined(CUSTOM_WS2812FX_ANIMATIONS)
|
||||||
strip->setCustomMode(0, F("Fire 2012"), myCustomEffect0);
|
strip->setCustomMode(0, F("Fire 2012"), myCustomEffect0);
|
||||||
//strip->setCustomMode(1, F("CustEffect"), myCustomEffect1);
|
//strip->setCustomMode(1, F("CustEffect"), myCustomEffect1);
|
||||||
|
gReverseDirection = (WS2812FXStripSettings.fxoptions & 128);
|
||||||
#endif
|
#endif
|
||||||
#if defined(ENABLE_E131)
|
#if defined(ENABLE_E131)
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ struct ledstate // Data structure to store a state of a single le
|
|||||||
uint8_t red;
|
uint8_t red;
|
||||||
uint8_t green;
|
uint8_t green;
|
||||||
uint8_t blue;
|
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
|
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
|
#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
|
* 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.
|
* setPixelColor() function to copy the color data to the ws2812fx instance.
|
||||||
|
|||||||
Reference in New Issue
Block a user