42#define CentreX (WIDTH / 2) - 1
43#define CentreY (HEIGHT / 2) - 1
48#define LAST_VISIBLE_LED 119
54#define FLAMEHEIGHT 3.8
55#define FIRENOISESCALE 125
64#define SMOKENOISE_DIMMER 250
65#define SMOKENOISESCALE 125
84uint8_t
XY (uint8_t
x, uint8_t
y);
130 for (uint16_t
y = 0;
y <
WIDTH;
y++) {
132 vec2f xy = {float(
x) * 3, float(
y) * 20};
142 uint16_t ctrl1 =
inoise16(11 * now, 0, 0);
143 uint16_t ctrl2 =
inoise16(13 * now, 100000, 100000);
144 uint16_t ctrl = ((ctrl1 + ctrl2) >> 1);
154 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
156 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
171 for (uint8_t x_count = 0; x_count <
WIDTH; x_count++) {
173 for (uint8_t y_count = 0; y_count <
HEIGHT; y_count++) {
181 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
182 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
188 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
197 for (uint8_t
y = 0;
y <
HEIGHT - 1;
y++) {
198 for (uint8_t
x = 0;
x <
WIDTH;
x++) {
220uint8_t
XY (uint8_t
x, uint8_t
y) {
226 const uint8_t XYTable[] = {
258 uint8_t j = XYTable[i];
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS 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 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)
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.
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.
fl::u16 XY(fl::u8 x, fl::u8 y)
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType)
HeapVector< T, Allocator > vector
Representation of an RGB pixel (Red, Green, Blue)