FastLED 3.9.15
Loading...
Searching...
No Matches
NoisePlusPalette.ino File Reference

Detailed Description

Demonstrates how to mix noise generation with color palettes on a 2D LED matrix.

Definition in file NoisePlusPalette.ino.

#include <FastLED.h>
+ Include dependency graph for NoisePlusPalette.ino:

Go to the source code of this file.

Macros

#define BRIGHTNESS   96
 
#define COLOR_ORDER   GRB
 
#define HOLD_PALETTES_X_TIMES_AS_LONG   1
 
#define LED_PIN   3
 
#define LED_TYPE   WS2811
 
#define MAX_DIMENSION   ((kMatrixWidth>kMatrixHeight) ? kMatrixWidth : kMatrixHeight)
 
#define NUM_LEDS   (kMatrixWidth * kMatrixHeight)
 

Functions

void ChangePaletteAndSettingsPeriodically ()
 
void fillnoise8 ()
 
void loop ()
 
void mapNoiseToLEDsUsingPalette ()
 
void setup ()
 
void SetupBlackAndWhiteStripedPalette ()
 
void SetupPurpleAndGreenPalette ()
 
void SetupRandomPalette ()
 
uint16_t XY (uint8_t x, uint8_t y)
 

Variables

uint8_t colorLoop = 1
 
CRGBPalette16 currentPalette (PartyColors_p)
 
const uint8_t kMatrixHeight = 16
 
const bool kMatrixSerpentineLayout = true
 
const uint8_t kMatrixWidth = 16
 
CRGB leds [kMatrixWidth *kMatrixHeight]
 
uint8_t noise [MAX_DIMENSION][MAX_DIMENSION]
 
uint16_t scale = 30
 
uint16_t speed = 20
 
static uint16_t x
 
static uint16_t y
 
static uint16_t z