2019-09-25 04:25:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "prototypes.h"
|
|
|
|
#include "functions.h"
|
|
|
|
#include "Effect.h"
|
|
|
|
|
|
|
|
class SinesEffectSinus {
|
|
|
|
private:
|
2019-10-04 10:05:54 +00:00
|
|
|
uint16_t _frequency;
|
|
|
|
uint16_t _color_frequency;
|
|
|
|
uint16_t _amplitude;
|
|
|
|
uint16_t _x;
|
|
|
|
uint16_t _offset;
|
2019-09-25 04:25:16 +00:00
|
|
|
Window* _window;
|
|
|
|
public:
|
|
|
|
SinesEffectSinus(Window* w);
|
2019-10-01 04:29:32 +00:00
|
|
|
void loop(uint16_t ms);
|
2019-09-25 04:25:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class SinesEffect : public Effect {
|
|
|
|
private:
|
2019-10-02 04:13:55 +00:00
|
|
|
SinesEffectSinus** _sinus;
|
2019-10-04 10:05:54 +00:00
|
|
|
uint8_t _count;
|
|
|
|
void _init();
|
|
|
|
void _delete();
|
2019-09-25 04:25:16 +00:00
|
|
|
public:
|
|
|
|
SinesEffect();
|
|
|
|
~SinesEffect();
|
|
|
|
boolean supports_window = true;
|
|
|
|
boolean can_be_shown_with_clock();
|
2019-10-01 04:29:32 +00:00
|
|
|
void loop(uint16_t ms);
|
2019-09-25 16:11:03 +00:00
|
|
|
String get_name() override { return "sines"; }
|
2019-09-25 04:25:16 +00:00
|
|
|
};
|
|
|
|
|