FastLED 3.9.7
Loading...
Searching...
No Matches
FastLED.cpp File Reference

Detailed Description

Central source file for FastLED, implements the CFastLED class/object.

Definition in file FastLED.cpp.

#include "FastLED.h"
#include "fl/singleton.h"
#include "fl/engine_events.h"

Go to the source code of this file.

Macros

#define FASTLED_INTERNAL
 
#define MAX_CLED_CONTROLLERS   64
 

Functions

int atexit (void(*)())
 Has to be declared outside of any namespaces.
 
void yield (void)
 
uint16_t cled_contoller_size ()
 
uint8_t get_brightness ()
 

Variables

void * pSmartMatrix = NULL
 Pointer to the matrix object when using the Smart Matrix Library.
 
CFastLED FastLED
 Global LED strip management instance.
 
uint32_t _frame_cnt =0
 Global frame counter, used for debugging ESP implementations.
 
uint32_t _retry_cnt =0
 Global frame retry counter, used for debugging ESP implementations.
 
int noise_min
 Unused value.
 
int noise_max
 Unused value.
 

Macro Definition Documentation

◆ FASTLED_INTERNAL

#define FASTLED_INTERNAL

Definition at line 1 of file FastLED.cpp.

◆ MAX_CLED_CONTROLLERS

#define MAX_CLED_CONTROLLERS   64

Definition at line 18 of file FastLED.cpp.

Function Documentation

◆ atexit()

int atexit ( void(*  )())

Has to be declared outside of any namespaces.

Called at program exit when run in a desktop environment. Extra C definition that some environments may need.

Returns
0 to indicate success

Definition at line 30 of file FastLED.cpp.

◆ cled_contoller_size()

uint16_t cled_contoller_size ( )

Definition at line 35 of file FastLED.cpp.

◆ get_brightness()

uint8_t get_brightness ( )

Definition at line 310 of file FastLED.cpp.

◆ yield()

void yield ( void )

Definition at line 31 of file FastLED.cpp.

Variable Documentation

◆ _frame_cnt

uint32_t _frame_cnt =0

Global frame counter, used for debugging ESP implementations.

Todo
Include in FASTLED_DEBUG_COUNT_FRAME_RETRIES block?

Definition at line 53 of file FastLED.cpp.

◆ _retry_cnt

uint32_t _retry_cnt =0

Global frame retry counter, used for debugging ESP implementations.

Todo
Include in FASTLED_DEBUG_COUNT_FRAME_RETRIES block?

Definition at line 57 of file FastLED.cpp.

◆ FastLED

◆ noise_max

int noise_max
extern

Unused value.

Todo
Remove?

◆ noise_min

int noise_min
extern

Unused value.

Todo
Remove?

◆ pSmartMatrix

void* pSmartMatrix = NULL

Pointer to the matrix object when using the Smart Matrix Library.

See also
https://github.com/pixelmatix/SmartMatrix
Examples
SmartMatrix.ino.

Definition at line 43 of file FastLED.cpp.