2019-06-14 03:32:17 +00:00
|
|
|
#pragma once
|
|
|
|
#include "Effect.h"
|
|
|
|
|
|
|
|
class GolEffect : public Effect {
|
|
|
|
private:
|
|
|
|
uint8_t *_data;
|
|
|
|
uint8_t *_old;
|
|
|
|
uint8_t _blend;
|
|
|
|
uint8_t _hue = 0;
|
|
|
|
uint8_t _old_hue = 0;
|
|
|
|
uint16_t _step;
|
|
|
|
|
|
|
|
void _advance();
|
|
|
|
void _draw();
|
|
|
|
void _initialize();
|
|
|
|
|
|
|
|
public:
|
|
|
|
GolEffect();
|
2019-06-18 16:09:05 +00:00
|
|
|
~GolEffect();
|
2019-10-01 04:29:32 +00:00
|
|
|
void loop(uint16_t ms);
|
2019-06-14 03:32:17 +00:00
|
|
|
bool can_be_shown_with_clock();
|
2019-09-25 16:11:03 +00:00
|
|
|
String get_name() override { return "gol"; }
|
2019-06-14 03:32:17 +00:00
|
|
|
};
|