2018-07-15 15:26:07 +00:00
|
|
|
#ifndef FX_FLASH_H
|
|
|
|
#define FX_FLASH_H
|
|
|
|
#include <Adafruit_NeoPixel.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include "effect.h"
|
|
|
|
|
|
|
|
class FX_Flash : public Effect
|
|
|
|
{
|
|
|
|
public:
|
2018-07-15 21:04:20 +00:00
|
|
|
FX_Flash(int numpixels,Adafruit_NeoPixel *strip,uint8_t *height,uint32_t flashcolor);
|
2018-07-15 15:26:07 +00:00
|
|
|
FX_Flash();
|
|
|
|
void updateRoutine(float updatedelayms);
|
|
|
|
void updateGraphics();
|
|
|
|
uint32_t Wheel(byte WheelPos,float brightness);
|
|
|
|
bool active();
|
|
|
|
private:
|
|
|
|
int _numpixels;
|
|
|
|
Adafruit_NeoPixel *_strip;
|
|
|
|
uint32_t _flashcolor;
|
|
|
|
long _starttime;
|
2018-07-15 21:04:20 +00:00
|
|
|
uint8_t _brightness;
|
|
|
|
long _flashtime;
|
|
|
|
uint8_t *_height;
|
2018-07-15 15:26:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|