30#define CentreX (WIDTH / 2) - 1
31#define CentreY (HEIGHT / 2) - 1
36#define LAST_VISIBLE_LED 119
42#define FLAMEHEIGHT 3.8
43#define FIRENOISESCALE 125
52#define SMOKENOISE_DIMMER 250
53#define SMOKENOISESCALE 125
72uint8_t
XY (uint8_t
x, uint8_t
y);
118 for (uint16_t
y = 0;
y <
WIDTH;
y++) {
130 uint16_t ctrl1 =
inoise16(11 * now, 0, 0);
131 uint16_t ctrl2 =
inoise16(13 * now, 100000, 100000);
132 uint16_t ctrl = ((ctrl1 + ctrl2) >> 1);
142 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
144 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
159 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
161 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
169 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
170 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
176 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
185 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
186 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
208uint8_t
XY (uint8_t
x, uint8_t
y) {
214 const uint8_t XYTable[] = {
246 uint8_t j = XYTable[i];
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
ScreenMap makeScreenMap()
uint8_t XY(uint8_t x, uint8_t y)
uint8_t noise2[NUM_LAYERS][WIDTH][HEIGHT]
uint32_t scale_y[NUM_LAYERS]
#define SMOKENOISE_DIMMER
void Fire2023(uint32_t now)
uint32_t scale_x[NUM_LAYERS]
unsigned int xy(unsigned int x, unsigned int y)
RGB color palette with 32 discrete values.
LED controller for WS2812 LEDs with GRB color order.
void push_back(const T &value)
#define DEFINE_GRADIENT_PALETTE(X)
Defines a static RGB palette very compactly using a series of connected color gradients.
#define DISABLE_DITHER
Disable dithering.
uint16_t inoise16(uint32_t x, uint32_t y, uint32_t z, uint32_t t)
16-bit, fixed point implementation of Perlin's noise.
@ LINEARBLEND
Linear interpolation between palette entries, with wrap-around from end to the beginning again.
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
Get a color from a palette.
LIB8STATIC_ALWAYS_INLINE uint8_t scale8(uint8_t i, fract8 scale)
Scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is ...
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
pair_xy< float > pair_xy_float
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)