add gradient fading animation

This commit is contained in:
2018-09-30 18:59:12 +02:00
parent 4cf0f0cc4d
commit 284d40d0b8
5 changed files with 1372 additions and 18 deletions

View File

@@ -26,7 +26,7 @@ class NeoPattern : public Adafruit_NeoPixel
public:
// Member Variables:
pattern ActivePattern; // which pattern is running
pattern ActivePattern = RAINBOW_CYCLE; // which pattern is running
direction Direction = FORWARD; // direction to run the pattern
unsigned long Interval = 150; // milliseconds between updates
@@ -34,7 +34,7 @@ class NeoPattern : public Adafruit_NeoPixel
uint32_t Color1 = 0;
uint32_t Color2 = 0; // What colors are in use
uint16_t TotalSteps = 255; // total number of steps in the pattern
uint16_t TotalSteps = 32; // total number of steps in the pattern
uint16_t Index; // current step within the pattern
uint16_t completed = 0;