FastLED 3.9.15
Loading...
Searching...
No Matches
FxGfx2Video.ino File Reference

Detailed Description

Demonstrates graphics to video conversion.

Definition in file FxGfx2Video.ino.

#include <FastLED.h>
#include "fl/stl/detail/memory_file_handle.h"
#include "fl/fx/fx_engine.h"
#include "fl/stl/memory.h"
#include "fl/fx/video.h"
#include "fl/log/log.h"
+ Include dependency graph for FxGfx2Video.ino:

Go to the source code of this file.

Macros

#define BRIGHTNESS   96
 
#define COLOR_ORDER   GRB
 
#define LED_PIN   2
 
#define LED_TYPE   WS2811
 
#define MATRIX_HEIGHT   22
 
#define MATRIX_WIDTH   22
 
#define NUM_LEDS   (MATRIX_WIDTH * MATRIX_HEIGHT)
 

Functions

void loop ()
 
void setup ()
 
void write_one_frame (fl::memorybufPtr memoryStream)
 

Variables

const uint32_t BUFFER_SIZE = BYTES_PER_FRAME * NUM_FRAMES
 
const int BYTES_PER_FRAME = 3 * NUM_LEDS
 
fl::FxEngine fxEngine (NUM_LEDS)
 
fl::CRGB leds [NUM_LEDS]
 
fl::memorybufPtr memoryStream
 
const int NUM_FRAMES = 2
 
fl::Video video (NUM_LEDS, 2.0f)
 
fl::XYMap xymap (MATRIX_WIDTH, MATRIX_HEIGHT)