FastLED 3.7.8
Loading...
Searching...
No Matches
NoisePlayground.ino File Reference

Detailed Description

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
 

Macro Definition Documentation

◆ kMatrixSerpentineLayout

#define kMatrixSerpentineLayout   true

Definition at line 23 of file NoisePlayground.ino.

◆ NUM_LEDS

#define NUM_LEDS   (kMatrixWidth * kMatrixHeight)

Definition at line 20 of file NoisePlayground.ino.

Function Documentation

◆ loop()

void loop ( )

Definition at line 53 of file NoisePlayground.ino.

◆ setup()

void setup ( )

Definition at line 70 of file NoisePlayground.ino.

Variable Documentation

◆ hue_octaves

uint8_t hue_octaves =3

Definition at line 36 of file NoisePlayground.ino.

◆ hue_scale

int hue_scale =1

Definition at line 43 of file NoisePlayground.ino.

◆ hue_speed

int hue_speed =31

Definition at line 47 of file NoisePlayground.ino.

◆ hue_time

uint32_t hue_time

Definition at line 29 of file NoisePlayground.ino.

◆ hxy

uint32_t hxy

Definition at line 29 of file NoisePlayground.ino.

◆ kMatrixHeight

const uint8_t kMatrixHeight = 16

Definition at line 18 of file NoisePlayground.ino.

◆ kMatrixWidth

const uint8_t kMatrixWidth = 16

Definition at line 17 of file NoisePlayground.ino.

◆ leds

CRGB leds[kMatrixWidth *kMatrixHeight]

Definition at line 26 of file NoisePlayground.ino.

◆ octaves

uint8_t octaves =1

Definition at line 35 of file NoisePlayground.ino.

◆ time_speed

int time_speed =1111

Definition at line 46 of file NoisePlayground.ino.

◆ v_time

uint32_t v_time

Definition at line 29 of file NoisePlayground.ino.

◆ x

uint32_t x

Definition at line 29 of file NoisePlayground.ino.

◆ x_speed

int x_speed =331

Definition at line 50 of file NoisePlayground.ino.

◆ xscale

int xscale =57771

Definition at line 39 of file NoisePlayground.ino.

◆ y

uint32_t y

Definition at line 29 of file NoisePlayground.ino.

◆ y_speed

int y_speed =1111

Definition at line 51 of file NoisePlayground.ino.

◆ yscale

int yscale =57771

Definition at line 40 of file NoisePlayground.ino.