Library to control NeoPixel strings of RGB leds

Dependencies:   PixelArray

Dependents:   NeoPixelI2cSlave NeoPixelI2cSlave

Revision:
3:7d32f46a38d3
Parent:
2:bb9ebad05691
--- a/Effects/shift_effect.h	Mon Nov 23 21:32:24 2015 +0000
+++ b/Effects/shift_effect.h	Fri Apr 15 14:38:13 2016 +0000
@@ -1,20 +1,19 @@
 #pragma once
 
-#include "effect.h"
+#include "periodic_effect.h"
 
 namespace Effects {
 
     enum ShiftState { FIRST_TIME, RUNNING };
     
-    class ShiftEffect : public Effect {
+    class ShiftEffect : public PeriodicEffect {
     
         private:
             ShiftState state;
-            neopixel::Pixel color;
             int groupsize;      // Number of pixels to consider a group where the pixel is shifted in
             
         public:
-            ShiftEffect(NeoPixelString * pixelstring, int delay_ms, neopixel::Pixel color, int groupsize);
+            ShiftEffect(NeoPixelString * pixelstring, neopixel::Pixel color, int delay_ms, int groupsize);
         
         public:
             virtual void execute(void);