FastLED 3.9.15
Loading...
Searching...
No Matches
Fire2023.ino File Reference
#include "FastLED.h"
#include "fl/xymap.h"
#include "fl/screenmap.h"
#include "fl/vector.h"
+ Include dependency graph for Fire2023.ino:

Go to the source code of this file.

Macros

#define BRIGHTNESS   255
 
#define CentreX   (WIDTH / 2) - 1
 
#define CentreY   (HEIGHT / 2) - 1
 
#define FIRENOISE   0
 
#define FIRENOISESCALE   125
 
#define FIRESPEED   17
 
#define FLAMEHEIGHT   3.8
 
#define HEIGHT   28
 
#define LAST_VISIBLE_LED   119
 
#define NUM_LAYERS   2
 
#define NUM_LEDS   120
 
#define PIXELPIN   18
 
#define SMOKENOISE   1
 
#define SMOKENOISE_DIMMER   250
 
#define SMOKENOISESCALE   125
 
#define SMOKESPEED   25
 
#define WIDTH   4
 

Functions

 DEFINE_GRADIENT_PALETTE (hot_gp)
 
void Fire2023 (uint32_t now)
 
void loop ()
 
ScreenMap makeScreenMap ()
 
void setup ()
 
uint8_t XY (uint8_t x, uint8_t y)
 

Variables

uint8_t heat [NUM_LEDS]
 
CRGBPalette32 hotPalette = hot_gp
 
CRGB leds [NUM_LEDS]
 
uint8_t noise [NUM_LAYERS][WIDTH][HEIGHT]
 
uint8_t noise2 [NUM_LAYERS][WIDTH][HEIGHT]
 
uint32_t scale_x [NUM_LAYERS]
 
uint32_t scale_y [NUM_LAYERS]
 
uint32_t x [NUM_LAYERS]
 
uint32_t y [NUM_LAYERS]
 
uint32_t z [NUM_LAYERS]