FastLED 3.9.3
|
Demonstrates how to use noise generation on a 2D LED matrix.
Definition in file NoisePlayground.ino.
#include <FastLED.h>
Go to the source code of this file.
Macros | |
#define | NUM_LEDS (kMatrixWidth * kMatrixHeight) |
#define | kMatrixSerpentineLayout true |
Functions | |
void | loop () |
void | setup () |
Variables | |
const uint8_t | kMatrixWidth = 16 |
const uint8_t | kMatrixHeight = 16 |
CRGB | leds [kMatrixWidth *kMatrixHeight] |
uint32_t | x |
uint32_t | y |
uint32_t | v_time |
uint32_t | hue_time |
uint32_t | hxy |
uint8_t | octaves =1 |
uint8_t | hue_octaves =3 |
int | xscale =57771 |
int | yscale =57771 |
int | hue_scale =1 |
int | time_speed =1111 |
int | hue_speed =31 |
int | x_speed =331 |
int | y_speed =1111 |
#define kMatrixSerpentineLayout true |
Definition at line 23 of file NoisePlayground.ino.
#define NUM_LEDS (kMatrixWidth * kMatrixHeight) |
Definition at line 20 of file NoisePlayground.ino.
void loop | ( | ) |
Definition at line 53 of file NoisePlayground.ino.
void setup | ( | ) |
Definition at line 70 of file NoisePlayground.ino.
uint8_t hue_octaves =3 |
Definition at line 36 of file NoisePlayground.ino.
int hue_scale =1 |
Definition at line 43 of file NoisePlayground.ino.
int hue_speed =31 |
Definition at line 47 of file NoisePlayground.ino.
uint32_t hue_time |
Definition at line 29 of file NoisePlayground.ino.
uint32_t hxy |
Definition at line 29 of file NoisePlayground.ino.
const uint8_t kMatrixHeight = 16 |
Definition at line 18 of file NoisePlayground.ino.
const uint8_t kMatrixWidth = 16 |
Definition at line 17 of file NoisePlayground.ino.
CRGB leds[kMatrixWidth *kMatrixHeight] |
Definition at line 26 of file NoisePlayground.ino.
uint8_t octaves =1 |
Definition at line 35 of file NoisePlayground.ino.
int time_speed =1111 |
Definition at line 46 of file NoisePlayground.ino.
uint32_t v_time |
Definition at line 29 of file NoisePlayground.ino.
uint32_t x |
Definition at line 29 of file NoisePlayground.ino.
int x_speed =331 |
Definition at line 50 of file NoisePlayground.ino.
int xscale =57771 |
Definition at line 39 of file NoisePlayground.ino.
uint32_t y |
Definition at line 29 of file NoisePlayground.ino.
int y_speed =1111 |
Definition at line 51 of file NoisePlayground.ino.
int yscale =57771 |
Definition at line 40 of file NoisePlayground.ino.