ws2812-achterbahn/src/fx_shootingstar.h

28 lines
606 B
C
Raw Normal View History

2020-12-16 22:38:40 +00:00
#ifndef FX_SHOOTINGSTAR_H
#define FX_SHOOTINGSTAR_H
#include <Adafruit_NeoPixel.h>
#include <math.h>
#include "effect.h"
class FX_ShootingStar : public Effect
{
public:
FX_ShootingStar(int numpixels,Adafruit_NeoPixel *strip,uint8_t *height);
FX_ShootingStar();
void updateRoutine(float updatedelayms);
void updateGraphics();
uint32_t Wheel(byte WheelPos,float brightness);
bool active();
private:
int _numpixels;
Adafruit_NeoPixel *_strip;
long _starttime;
uint8_t _brightness;
2021-10-16 10:04:37 +00:00
long _duration;
2020-12-16 22:38:40 +00:00
uint8_t *_height;
2021-10-16 10:04:37 +00:00
int _pos;
float _vel;
2020-12-16 22:38:40 +00:00
};
#endif