Library to control NeoPixel strings of RGB leds

Dependencies:   PixelArray

Dependents:   NeoPixelI2cSlave NeoPixelI2cSlave

Effects/shift_effect.h

Committer:
dwini
Date:
2016-04-15
Revision:
3:7d32f46a38d3
Parent:
2:bb9ebad05691

File content as of revision 3:7d32f46a38d3:

#pragma once

#include "periodic_effect.h"

namespace Effects {

    enum ShiftState { FIRST_TIME, RUNNING };
    
    class ShiftEffect : public PeriodicEffect {
    
        private:
            ShiftState state;
            int groupsize;      // Number of pixels to consider a group where the pixel is shifted in
            
        public:
            ShiftEffect(NeoPixelString * pixelstring, neopixel::Pixel color, int delay_ms, int groupsize);
        
        public:
            virtual void execute(void);
    };

};