pitrix/include/effect_sines.h

35 lines
627 B
C++

#pragma once
#include "prototypes.h"
#include "functions.h"
#include "Effect.h"
class SinesEffectSinus {
private:
uint16_t _frequency;
uint16_t _color_frequency;
uint16_t _amplitude;
uint16_t _x;
uint16_t _offset;
Window* _window;
public:
SinesEffectSinus(Window* w);
void loop(uint16_t ms);
};
class SinesEffect : public Effect {
private:
SinesEffectSinus** _sinus;
uint8_t _count;
void _init();
void _delete();
public:
SinesEffect();
~SinesEffect();
boolean supports_window = true;
boolean can_be_shown_with_clock();
void loop(uint16_t ms);
String get_name() override { return "sines"; }
};