FastLED 3.9.7
|
Demonstrates how to use noise generation on a 2D LED matrix.
Definition in file Noise.ino.
#include <FastLED.h>
Go to the source code of this file.
Macros | |
#define | MAX_DIMENSION ((kMatrixWidth>kMatrixHeight) ? kMatrixWidth : kMatrixHeight) |
#define | NUM_LEDS (kMatrixWidth * kMatrixHeight) |
Functions | |
uint16_t | XY (uint8_t x, uint8_t y) |
void | setup () |
void | fillnoise8 () |
void | loop () |
Variables | |
const uint8_t | kMatrixWidth = 16 |
const uint8_t | kMatrixHeight = 16 |
const bool | kMatrixSerpentineLayout = true |
CRGB | leds [kMatrixWidth *kMatrixHeight] |
uint16_t | speed = 20 |
uint16_t | scale = 311 |
uint16_t | noise [MAX_DIMENSION][MAX_DIMENSION] |
#define MAX_DIMENSION ((kMatrixWidth>kMatrixHeight) ? kMatrixWidth : kMatrixHeight) |