FastLED 3.9.15
Loading...
Searching...
No Matches
FxWater.ino File Reference
#include <FastLED.h>
#include "Arduino.h"
#include "fl/xymap.h"
+ Include dependency graph for FxWater.ino:

Go to the source code of this file.

Macros

#define HEIGHT   32
 
#define NUM_LEDS   ((WIDTH) * (HEIGHT))
 
#define WATERHEIGHT   (HEIGHT + 2)
 
#define WATERWIDTH   (WIDTH + 2)
 
#define WIDTH   32
 
#define WU_WEIGHT(a, b)
 

Functions

void loop ()
 
CRGB MyColorFromPaletteExtended (const CRGBPalette16 &pal, uint16_t index, uint8_t brightness, TBlendType blendType)
 
void process_water (uint8_t *src, uint8_t *dst)
 
void setup ()
 
void wu_water (uint8_t *const buf, uint16_t x, uint16_t y, uint8_t bright)
 
uint16_t XY (uint8_t x, uint8_t y)
 

Variables

CRGB leds [NUM_LEDS]
 
uint8_t water [2][WATERWIDTH *WATERHEIGHT]
 
XYMap xyMap (WIDTH, HEIGHT, false)