FastLED 3.9.7
Loading...
Searching...
No Matches
fl Namespace Reference

Detailed Description

Implements a simple red square effect for 2D LED grids.

Classes

struct  _DrawContext
 
class  Animartrix
 
struct  AnimartrixEntry
 ################################################## Details with the implementation of Animartrix More...
 
struct  ArrayDeleter
 
class  Button
 
class  ByteStream
 
class  ByteStreamMemory
 
class  Callback
 
class  Checkbox
 
class  CircularBuffer
 
class  Cylon
 An animation that moves a single LED back and forth (Larson Scanner effect) More...
 
class  DemoReel100
 
class  Description
 
class  DigitalPin
 
class  DigitalPinImpl
 
struct  enable_if
 
struct  enable_if< true, T >
 
class  EngineEvents
 
class  FastLEDANIMartRIX
 
class  FileHandle
 
class  FileSystem
 
class  Fire2012
 
class  FixedMap
 
class  FixedSet
 
class  FixedVector
 
class  Frame
 
class  FrameInterpolator
 
class  FrameTracker
 
class  FsImpl
 
class  Fx
 
class  Fx1d
 
class  Fx2d
 
class  FxCompositor
 
class  FxEngine
 Manages and renders multiple visual effects (Fx) for LED strips. More...
 
class  FxLayer
 
class  HeapVector
 
struct  is_base_of
 
struct  is_base_of_v_helper
 
struct  is_pod
 
struct  is_pod< bool >
 
struct  is_pod< char >
 
struct  is_pod< double >
 
struct  is_pod< float >
 
struct  is_pod< int >
 
struct  is_pod< long >
 
struct  is_pod< long double >
 
struct  is_pod< long long >
 
struct  is_pod< short >
 
struct  is_pod< signed char >
 
struct  is_pod< unsigned char >
 
struct  is_pod< unsigned int >
 
struct  is_pod< unsigned long >
 
struct  is_pod< unsigned long long >
 
struct  is_pod< unsigned short >
 
struct  is_pod_v_helper
 
struct  is_same
 
struct  is_same< T, T >
 
struct  is_same_v_helper
 
class  JsonDocument
 
class  LargeBlockAllocator
 
class  LUT
 
class  NoisePalette
 
class  NoiseWave
 
class  NullFileHandle
 
class  NullFileSystem
 
class  NumberField
 
class  Pacifica
 
struct  Pair
 
struct  pair_xy
 
class  Pir
 
class  PirAdvanced
 
class  PixelStream
 
struct  PointerDeleter
 
class  Pride2015
 
class  Ptr
 
class  PtrTraits
 
class  RedSquare
 
class  Referent
 
class  ScaleUp
 
class  scoped_array
 
class  scoped_ptr
 
class  ScreenMap
 
class  Singleton
 
class  Slice
 
class  Slider
 
class  SortedHeapMap
 
class  SortedHeapVector
 
class  Str
 
class  StringFormatter
 
class  StringHolder
 
class  StrN
 
class  TimeFunction
 
class  TimeScale
 
class  Title
 
class  Transition
 
class  TwinkleFox
 
class  Video
 
class  VideoFxWrapper
 
class  VideoImpl
 
class  WeakPtr
 
class  WeakReferent
 
class  XMap
 
class  XYMap
 

Typedefs

using pair_xy_float = pair_xy<float>
 
typedef LUT< uint16_t > LUT16
 
typedef LUT< pair_xy_floatLUTXYFLOAT
 
template<bool Condition, typename T = void>
using enable_if_t = typename enable_if<Condition, T>::type
 
template<typename Base , typename Derived >
using is_derived = enable_if_t<is_base_of<Base, Derived>::value>
 
typedef int64_t cycle_t
 8.8 fixed point (signed) value
 
typedef uint16_t(* XFunction) (uint16_t x, uint16_t length)
 
typedef uint16_t(* XYFunction) (uint16_t x, uint16_t y, uint16_t width, uint16_t height)
 

Enumerations

enum  InsertResult { kInserted = 0 , kExists = 1 , kMaxSize = 2 }
 
enum  AnimartrixAnim {
  RGB_BLOBS5 = 0 , RGB_BLOBS4 , RGB_BLOBS3 , RGB_BLOBS2 ,
  RGB_BLOBS , POLAR_WAVES , SLOW_FADE , ZOOM2 ,
  ZOOM , HOT_BLOB , SPIRALUS2 , SPIRALUS ,
  YVES , SCALEDEMO1 , LAVA1 , CALEIDO3 ,
  CALEIDO2 , CALEIDO1 , DISTANCE_EXPERIMENT , CENTER_FIELD ,
  WAVES , CHASING_SPIRALS , ROTATING_BLOB , RINGS ,
  COMPLEX_KALEIDO , COMPLEX_KALEIDO_2 , COMPLEX_KALEIDO_3 , COMPLEX_KALEIDO_4 ,
  COMPLEX_KALEIDO_5 , COMPLEX_KALEIDO_6 , WATER , PARAMETRIC_WATER ,
  MODULE_EXPERIMENT1 , MODULE_EXPERIMENT2 , MODULE_EXPERIMENT3 , MODULE_EXPERIMENT4 ,
  MODULE_EXPERIMENT5 , MODULE_EXPERIMENT6 , MODULE_EXPERIMENT7 , MODULE_EXPERIMENT8 ,
  MODULE_EXPERIMENT9 , MODULE_EXPERIMENT10 , MODULE_EXPERIMENT_SM1 , MODULE_EXPERIMENT_SM2 ,
  MODULE_EXPERIMENT_SM3 , MODULE_EXPERIMENT_SM4 , MODULE_EXPERIMENT_SM5 , MODULE_EXPERIMENT_SM6 ,
  MODULE_EXPERIMENT_SM8 , MODULE_EXPERIMENT_SM9 , MODULE_EXPERIMENT_SM10 , NUM_ANIMATIONS
}
 

Functions

void SetLargeBlockAllocator (void *(*alloc)(size_t), void(*free)(void *))
 
void * LargeBlockAllocate (size_t size, bool zero)
 
void LargeBlockDeallocate (void *ptr)
 
 FASTLED_SMART_PTR (ByteStream)
 
 FASTLED_SMART_PTR (ByteStreamMemory)
 
FsImplPtr make_sdcard_filesystem (int cs_pin)
 
 FASTLED_SMART_PTR (FsImpl)
 
 FASTLED_SMART_PTR (FileSystem)
 
 FASTLED_SMART_PTR (FileHandle)
 
bool parseJson (const char *json, fl::JsonDocument *doc, Str *_error)
 
void toJson (const fl::JsonDocument &doc, Str *jsonBuffer)
 
 FASTLED_SMART_PTR_NO_FWD (LUT16)
 
 FASTLED_SMART_PTR_NO_FWD (LUTXYFLOAT)
 
 FASTLED_SMART_PTR (StringHolder)
 
 FASTLED_UI_DEFINE_OPERATORS (Slider)
 
 FASTLED_UI_DEFINE_OPERATORS (NumberField)
 
 FASTLED_UI_DEFINE_OPERATORS (Checkbox)
 
 FASTLED_UI_DEFINE_OPERATORS (Button)
 
FASTLED_FORCE_INLINE uint16_t x_linear (uint16_t x, uint16_t length)
 
FASTLED_FORCE_INLINE uint16_t x_reverse (uint16_t x, uint16_t length)
 
FASTLED_FORCE_INLINE uint16_t xy_serpentine (uint16_t x, uint16_t y, uint16_t width, uint16_t height)
 
FASTLED_FORCE_INLINE uint16_t xy_line_by_line (uint16_t x, uint16_t y, uint16_t width, uint16_t height)
 
 FASTLED_SMART_PTR (Cylon)
 
 FASTLED_SMART_PTR (DemoReel100)
 
 FASTLED_SMART_PTR (Fire2012)
 Simple one-dimensional fire animation function.
 
 FASTLED_SMART_PTR (NoiseWave)
 
 FASTLED_SMART_PTR (Pacifica)
 
 FASTLED_SMART_PTR (Pride2015)
 
 FASTLED_SMART_PTR (TwinkleFox)
 
 FASTLED_SMART_PTR (Animartrix)
 
void AnimartrixLoop (Animartrix &self, uint32_t now)
 
uint8_t bilinearInterpolate (uint8_t v00, uint8_t v10, uint8_t v01, uint8_t v11, uint16_t dx, uint16_t dy)
 
uint8_t bilinearInterpolatePowerOf2 (uint8_t v00, uint8_t v10, uint8_t v01, uint8_t v11, uint8_t dx, uint8_t dy)
 
void bilinearExpandArbitrary (const CRGB *input, CRGB *output, uint16_t inputWidth, uint16_t inputHeight, fl::XYMap xyMap)
 Performs bilinear interpolation for upscaling an image.
 
void bilinearExpandPowerOf2 (const CRGB *input, CRGB *output, uint8_t inputWidth, uint8_t inputHeight, fl::XYMap xyMap)
 Performs bilinear interpolation for upscaling an image.
 
uint8_t bilinearInterpolateFloat (uint8_t v00, uint8_t v10, uint8_t v01, uint8_t v11, float dx, float dy)
 
void bilinearExpandArbitraryFloat (const CRGB *input, CRGB *output, uint16_t inputWidth, uint16_t inputHeight, XYMap xyMap)
 
void bilinearExpandFloat (const CRGB *input, CRGB *output, uint8_t inputWidth, uint8_t inputHeight, XYMap xyMap)
 
void bilinearExpand (const CRGB *input, CRGB *output, uint16_t inputWidth, uint16_t inputHeight, fl::XYMap xyMap)
 
 FASTLED_SMART_PTR (NoisePalette)
 
 FASTLED_SMART_PTR (RedSquare)
 
 FASTLED_SMART_PTR (ScaleUp)
 
 FASTLED_SMART_PTR (FxLayer)
 
 FASTLED_SMART_PTR (Frame)
 
 FASTLED_SMART_PTR (Fx)
 
 FASTLED_SMART_PTR (Fx2d)
 
 FASTLED_SMART_PTR (TimeFunction)
 
 FASTLED_SMART_PTR (TimeScale)
 
 FASTLED_SMART_PTR (PixelStream)
 
 FASTLED_SMART_PTR (FrameInterpolator)
 
 FASTLED_SMART_PTR (VideoImpl)
 
 FASTLED_SMART_PTR (VideoFxWrapper)
 
 FASTLED_SMART_PTR (DigitalPinImpl)
 

Variables

const TProgmemRGBPalette16 RedGreenWhite_p
 
const TProgmemRGBPalette16 Holly_p
 
const TProgmemRGBPalette16 RedWhite_p
 
const TProgmemRGBPalette16 BlueWhite_p
 
const TProgmemRGBPalette16 FairyLight_p
 
const TProgmemRGBPalette16 Snow_p
 
const TProgmemRGBPalette16 RetroC9_p
 
const TProgmemRGBPalette16 Ice_p
 
const TProgmemRGBPalette16ActivePaletteList []
 

Typedef Documentation

◆ cycle_t

typedef int64_t fl::cycle_t

8.8 fixed point (signed) value

Definition at line 11 of file types.h.

◆ enable_if_t

template<bool Condition, typename T = void>
using fl::enable_if_t = typename enable_if<Condition, T>::type

Definition at line 29 of file template_magic.h.

◆ is_derived

template<typename Base , typename Derived >
using fl::is_derived = enable_if_t<is_base_of<Base, Derived>::value>

Definition at line 112 of file template_magic.h.

◆ LUT16

typedef LUT<uint16_t> fl::LUT16

Definition at line 33 of file lut.h.

◆ LUTXYFLOAT

Definition at line 34 of file lut.h.

◆ pair_xy_float

using fl::pair_xy_float = pair_xy<float>

Definition at line 24 of file lut.h.

◆ XFunction

typedef uint16_t(* fl::XFunction) (uint16_t x, uint16_t length)

Definition at line 24 of file xmap.h.

◆ XYFunction

typedef uint16_t(* fl::XYFunction) (uint16_t x, uint16_t y, uint16_t width, uint16_t height)

Definition at line 33 of file xymap.h.

Enumeration Type Documentation

◆ AnimartrixAnim

enum fl::AnimartrixAnim

Definition at line 26 of file animartrix.hpp.

◆ InsertResult

enum fl::InsertResult

Definition at line 10 of file insert_result.h.

Function Documentation

◆ AnimartrixLoop()

void fl::AnimartrixLoop ( Animartrix & self,
uint32_t now )

Definition at line 162 of file animartrix.hpp.

◆ bilinearExpand()

void fl::bilinearExpand ( const CRGB * input,
CRGB * output,
uint16_t inputWidth,
uint16_t inputHeight,
fl::XYMap xyMap )
inline

Definition at line 37 of file bilinear_expansion.h.

◆ bilinearExpandArbitrary()

void fl::bilinearExpandArbitrary ( const CRGB * input,
CRGB * output,
uint16_t inputWidth,
uint16_t inputHeight,
fl::XYMap xyMap )

Performs bilinear interpolation for upscaling an image.

Parameters
outputThe output grid to write into the interpolated values.
inputThe input grid to read from.
inputWidthThe width of the input grid.
inputHeightThe height of the input grid.
xyMapThe XYMap to use to determine where to write the pixel. If the pixel is mapped outside of the range then it is clipped.

Definition at line 22 of file bilinear_expansion.cpp.

◆ bilinearExpandArbitraryFloat()

void fl::bilinearExpandArbitraryFloat ( const CRGB * input,
CRGB * output,
uint16_t inputWidth,
uint16_t inputHeight,
XYMap xyMap )

Definition at line 180 of file bilinear_expansion.cpp.

◆ bilinearExpandFloat()

void fl::bilinearExpandFloat ( const CRGB * input,
CRGB * output,
uint8_t inputWidth,
uint8_t inputHeight,
XYMap xyMap )

Definition at line 225 of file bilinear_expansion.cpp.

◆ bilinearExpandPowerOf2()

void fl::bilinearExpandPowerOf2 ( const CRGB * input,
CRGB * output,
uint8_t inputWidth,
uint8_t inputHeight,
fl::XYMap xyMap )

Performs bilinear interpolation for upscaling an image.

Parameters
outputThe output grid to write into the interpolated values.
inputThe input grid to read from.
inputWidthThe width of the input grid.
inputHeightThe height of the input grid.
xyMapThe XYMap to use to determine where to write the pixel. If the pixel is mapped outside of the range then it is clipped.

Definition at line 86 of file bilinear_expansion.cpp.

◆ bilinearInterpolate()

uint8_t fl::bilinearInterpolate ( uint8_t v00,
uint8_t v10,
uint8_t v01,
uint8_t v11,
uint16_t dx,
uint16_t dy )

Definition at line 67 of file bilinear_expansion.cpp.

◆ bilinearInterpolateFloat()

uint8_t fl::bilinearInterpolateFloat ( uint8_t v00,
uint8_t v10,
uint8_t v01,
uint8_t v11,
float dx,
float dy )

Definition at line 159 of file bilinear_expansion.cpp.

◆ bilinearInterpolatePowerOf2()

uint8_t fl::bilinearInterpolatePowerOf2 ( uint8_t v00,
uint8_t v10,
uint8_t v01,
uint8_t v11,
uint8_t dx,
uint8_t dy )

Definition at line 134 of file bilinear_expansion.cpp.

◆ LargeBlockAllocate()

void * fl::LargeBlockAllocate ( size_t size,
bool zero )

Definition at line 42 of file allocator.cpp.

◆ LargeBlockDeallocate()

void fl::LargeBlockDeallocate ( void * ptr)

Definition at line 50 of file allocator.cpp.

◆ make_sdcard_filesystem()

FsImplPtr fl::make_sdcard_filesystem ( int cs_pin)

Definition at line 190 of file file_system.cpp.

◆ parseJson()

bool fl::parseJson ( const char * json,
fl::JsonDocument * doc,
Str * _error )

Definition at line 6 of file json.cpp.

◆ SetLargeBlockAllocator()

void fl::SetLargeBlockAllocator ( void *(* alloc )(size_t),
void(* free )(void *) )

Definition at line 37 of file allocator.cpp.

◆ toJson()

void fl::toJson ( const fl::JsonDocument & doc,
Str * jsonBuffer )

Definition at line 24 of file json.cpp.

◆ x_linear()

FASTLED_FORCE_INLINE uint16_t fl::x_linear ( uint16_t x,
uint16_t length )

Definition at line 14 of file xmap.h.

◆ x_reverse()

FASTLED_FORCE_INLINE uint16_t fl::x_reverse ( uint16_t x,
uint16_t length )

Definition at line 19 of file xmap.h.

◆ xy_line_by_line()

FASTLED_FORCE_INLINE uint16_t fl::xy_line_by_line ( uint16_t x,
uint16_t y,
uint16_t width,
uint16_t height )

Definition at line 26 of file xymap.h.

◆ xy_serpentine()

FASTLED_FORCE_INLINE uint16_t fl::xy_serpentine ( uint16_t x,
uint16_t y,
uint16_t width,
uint16_t height )

Definition at line 16 of file xymap.h.

Variable Documentation

◆ ActivePaletteList

const TProgmemRGBPalette16* fl::ActivePaletteList[]
Initial value:
= {
&RetroC9_p, &BlueWhite_p, &RainbowColors_p, &FairyLight_p,
&RedGreenWhite_p, &PartyColors_p, &RedWhite_p, &Snow_p,
&Holly_p, &Ice_p}
const TProgmemRGBPalette16 PartyColors_p
HSV color ramp: blue, purple, pink, red, orange, yellow (and back).
const TProgmemRGBPalette16 RainbowColors_p
HSV Rainbow.

Definition at line 295 of file twinklefox.hpp.

◆ BlueWhite_p

◆ FairyLight_p

const TProgmemRGBPalette16 fl::FairyLight_p
Initial value:
= {
CRGB(CRGB::FairyLight).nscale8_constexpr(uint8_t(128)).as_uint32_t(),
CRGB(CRGB::FairyLight).nscale8_constexpr(uint8_t(128)).as_uint32_t(),
CRGB(CRGB::FairyLight).nscale8_constexpr(64).as_uint32_t(),
CRGB(CRGB::FairyLight).nscale8_constexpr(64).as_uint32_t(),
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54
@ FairyLight
Definition crgb.h:641

Definition at line 260 of file twinklefox.hpp.

◆ Holly_p

const TProgmemRGBPalette16 fl::Holly_p
Initial value:
= {
0x00580c, 0x00580c, 0x00580c, 0x00580c, 0x00580c, 0x00580c,
0x00580c, 0x00580c, 0x00580c, 0x00580c, 0x00580c, 0x00580c,
0x00580c, 0x00580c, 0x00580c, 0xB00402}

Definition at line 245 of file twinklefox.hpp.

◆ Ice_p

const TProgmemRGBPalette16 fl::Ice_p
Initial value:
= {
0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040,
0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040, 0x0C1040,
0x182080, 0x182080, 0x182080, 0x5080C0}

Definition at line 288 of file twinklefox.hpp.

◆ RedGreenWhite_p

◆ RedWhite_p

◆ RetroC9_p

const TProgmemRGBPalette16 fl::RetroC9_p
Initial value:
= {
0xB80400, 0x902C02, 0xB80400, 0x902C02, 0x902C02, 0xB80400,
0x902C02, 0xB80400, 0x046002, 0x046002, 0x046002, 0x046002,
0x070758, 0x070758, 0x070758, 0x606820}

Definition at line 283 of file twinklefox.hpp.

◆ Snow_p

const TProgmemRGBPalette16 fl::Snow_p
Initial value:
= {
0x304048, 0x304048, 0x304048, 0x304048, 0x304048, 0x304048,
0x304048, 0x304048, 0x304048, 0x304048, 0x304048, 0x304048,
0x304048, 0x304048, 0x304048, 0xE0F0FF}

Definition at line 278 of file twinklefox.hpp.