FastLED 3.9.15
|
Demonstrates how to use an XY position helper function with a 2D matrix.
Definition in file XYMatrix.ino.
#include <FastLED.h>
Go to the source code of this file.
Macros | |
#define | BRIGHTNESS 64 |
#define | CHIPSET WS2811 |
#define | COLOR_ORDER GRB |
#define | LED_PIN 3 |
#define | NUM_LEDS (kMatrixWidth * kMatrixHeight) |
Functions | |
void | DrawOneFrame (uint8_t startHue8, int8_t yHueDelta8, int8_t xHueDelta8) |
CRGB *const | leds (leds_plus_safety_pixel+1) |
void | loop () |
void | setup () |
uint16_t | XY (uint8_t x, uint8_t y) |
uint16_t | XYsafe (uint8_t x, uint8_t y) |
Variables | |
const uint8_t | kMatrixHeight = 16 |
const bool | kMatrixSerpentineLayout = true |
const bool | kMatrixVertical = false |
const uint8_t | kMatrixWidth = 16 |
CRGB | leds_plus_safety_pixel [NUM_LEDS+1] |