Library to control NeoPixel strings of RGB leds

Dependencies:   PixelArray

Dependents:   NeoPixelI2cSlave NeoPixelI2cSlave

Revision:
2:bb9ebad05691
Child:
3:7d32f46a38d3
diff -r f544810b6598 -r bb9ebad05691 Effects/shift_effect.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Effects/shift_effect.h	Mon Nov 23 21:32:24 2015 +0000
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "effect.h"
+
+namespace Effects {
+
+    enum ShiftState { FIRST_TIME, RUNNING };
+    
+    class ShiftEffect : public Effect {
+    
+        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);
+        
+        public:
+            virtual void execute(void);
+    };
+
+};
\ No newline at end of file