Library to control NeoPixel strings of RGB leds

Dependencies:   PixelArray

Dependents:   NeoPixelI2cSlave NeoPixelI2cSlave

Effects/shift_effect.h

Committer:
dwini
Date:
2015-11-23
Revision:
2:bb9ebad05691
Child:
3:7d32f46a38d3

File content as of revision 2:bb9ebad05691:

#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);
    };

};