pitrix/include/effect_fire.h

21 lines
342 B
C++

#pragma once
#include "Effect.h"
#include "my_fastled.h"
class FireEffect : public Effect {
private:
uint8_t* data;
uint8_t spark_temp();
void cooldown();
void spark();
void propagate();
void draw();
static CRGBPalette16 palette;
public:
FireEffect();
~FireEffect();
void loop();
String get_name() override { return "fire"; }
};