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

Detailed Description

Demonstrates how to use noise generation on a 2D LED matrix.

Definition in file Noise.ino.

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

Go to the source code of this file.

Macros

#define MAX_DIMENSION   ((kMatrixWidth>kMatrixHeight) ? kMatrixWidth : kMatrixHeight)
 
#define NUM_LEDS   (kMatrixWidth * kMatrixHeight)
 

Functions

void fillnoise8 ()
 
void loop ()
 
void setup ()
 
uint16_t XY (uint8_t x, uint8_t y)
 

Variables

const uint8_t kMatrixHeight = 16
 
const bool kMatrixSerpentineLayout = true
 
const uint8_t kMatrixWidth = 16
 
CRGB leds [kMatrixWidth *kMatrixHeight]
 
uint16_t noise [MAX_DIMENSION][MAX_DIMENSION]
 
uint16_t scale = 311
 
uint16_t speed = 20
 
static uint16_t x
 
static uint16_t y
 
static uint16_t z