add meteor effect

This reverts commit f1371d6737.
This commit is contained in:
viknet365 2018-11-20 21:31:07 +01:00
parent 17ce6b9507
commit 9d8d2c0aa1
2 changed files with 8 additions and 4 deletions

View File

@ -85,7 +85,7 @@
#define REVERSE (uint8_t)0x80
#define IS_REVERSE ((SEGMENT.options & REVERSE) == REVERSE)
#define MODE_COUNT 76
#define MODE_COUNT 77
#define FX_MODE_STATIC 0
#define FX_MODE_BLINK 1
@ -164,6 +164,8 @@
#define FX_MODE_NOISE16_4 73
#define FX_MODE_COLORTWINKLE 74
#define FX_MODE_LAKE 75
#define FX_MODE_METEOR 76
class WS2812FX {
typedef uint16_t (WS2812FX::*mode_ptr)(void);
@ -268,6 +270,7 @@ class WS2812FX {
_mode[FX_MODE_NOISE16_4] = &WS2812FX::mode_noise16_4;
_mode[FX_MODE_COLORTWINKLE] = &WS2812FX::mode_colortwinkle;
_mode[FX_MODE_LAKE] = &WS2812FX::mode_lake;
_mode[FX_MODE_METEOR] = &WS2812FX::mode_meteor;
_brightness = DEFAULT_BRIGHTNESS;
_running = false;
@ -443,6 +446,7 @@ class WS2812FX {
mode_noise16_4(void),
mode_colortwinkle(void),
mode_lake(void),
mode_meteor(void),
mode_lightning(void);
private:

File diff suppressed because one or more lines are too long