Library to control NeoPixel strings of RGB leds

Dependencies:   PixelArray

Dependents:   NeoPixelI2cSlave NeoPixelI2cSlave

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers shift_effect.h Source File

shift_effect.h

00001 #pragma once
00002 
00003 #include "periodic_effect.h"
00004 
00005 namespace Effects {
00006 
00007     enum ShiftState { FIRST_TIME, RUNNING };
00008     
00009     class ShiftEffect : public PeriodicEffect {
00010     
00011         private:
00012             ShiftState state;
00013             int groupsize;      // Number of pixels to consider a group where the pixel is shifted in
00014             
00015         public:
00016             ShiftEffect(NeoPixelString * pixelstring, neopixel::Pixel color, int delay_ms, int groupsize);
00017         
00018         public:
00019             virtual void execute(void);
00020     };
00021 
00022 };