Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
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 };
Generated on Fri Jul 15 2022 00:27:27 by 1.7.2