2019-06-04 03:58:23 +00:00
|
|
|
#pragma once
|
|
|
|
#include "Effect.h"
|
|
|
|
#include "my_fastled.h"
|
|
|
|
|
|
|
|
class FireEffect : public Effect {
|
2019-06-07 04:24:16 +00:00
|
|
|
private:
|
|
|
|
uint8_t* data;
|
|
|
|
uint8_t spark_temp();
|
|
|
|
void cooldown();
|
|
|
|
void spark();
|
|
|
|
void propagate();
|
|
|
|
void draw();
|
|
|
|
static CRGBPalette16 palette;
|
|
|
|
|
|
|
|
public:
|
2019-06-18 16:09:05 +00:00
|
|
|
FireEffect();
|
|
|
|
~FireEffect();
|
2019-06-07 04:24:16 +00:00
|
|
|
void loop();
|
2019-09-25 16:11:03 +00:00
|
|
|
String get_name() override { return "fire"; }
|
2019-06-04 03:58:23 +00:00
|
|
|
};
|