FastLED 3.9.3
Loading...
Searching...
No Matches
SmartMatrix.ino File Reference

Detailed Description

Demonstrates how to use FastLED with the SmartMatrix library.

Definition in file SmartMatrix.ino.

#include <SmartMatrix.h>
#include <FastLED.h>

Go to the source code of this file.

Macros

#define kMatrixWidth   32
 
#define kMatrixHeight   32
 
#define NUM_LEDS   (kMatrixWidth * kMatrixHeight)
 

Functions

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

Variables

const bool kMatrixSerpentineLayout = false
 
CRGB leds [kMatrixWidth *kMatrixHeight]
 
uint16_t speed = 20
 
uint16_t scale = 31
 
uint8_t noise [kMatrixWidth][kMatrixHeight]
 

Macro Definition Documentation

◆ kMatrixHeight

#define kMatrixHeight   32

Definition at line 14 of file SmartMatrix.ino.

◆ kMatrixWidth

#define kMatrixWidth   32

Definition at line 13 of file SmartMatrix.ino.

◆ NUM_LEDS

#define NUM_LEDS   (kMatrixWidth * kMatrixHeight)

Definition at line 17 of file SmartMatrix.ino.

Function Documentation

◆ fillnoise8()

void fillnoise8 ( )

Definition at line 93 of file SmartMatrix.ino.

◆ loop()

void loop ( )

Definition at line 105 of file SmartMatrix.ino.

◆ setup()

void setup ( )

Definition at line 70 of file SmartMatrix.ino.

◆ XY()

uint16_t XY ( uint8_t x,
uint8_t y )

Definition at line 22 of file SmartMatrix.ino.

Variable Documentation

◆ kMatrixSerpentineLayout

const bool kMatrixSerpentineLayout = false

Definition at line 15 of file SmartMatrix.ino.

◆ leds

CRGB leds[kMatrixWidth *kMatrixHeight]

Definition at line 19 of file SmartMatrix.ino.

◆ noise

uint8_t noise[kMatrixWidth][kMatrixHeight]

Definition at line 68 of file SmartMatrix.ino.

◆ scale

uint16_t scale = 31

Definition at line 65 of file SmartMatrix.ino.

◆ speed

uint16_t speed = 20

Definition at line 54 of file SmartMatrix.ino.