FastLED 3.9.15
|
Implements a simple red square effect for 2D LED grids.
Namespaces | |
namespace | anonymous_namespace{allocator.cpp} |
namespace | anonymous_namespace{five_bit_hd_gamma.cpp} |
namespace | anonymous_namespace{frame_tracker.cpp} |
namespace | anonymous_namespace{pir.cpp} |
namespace | string_functions |
Typedefs | |
typedef int64_t | cycle_t |
8.8 fixed point (signed) value | |
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 LUT< uint16_t > | LUT16 |
typedef LUT< pair_xy_float > | LUTXYFLOAT |
using | pair_xy_float = pair_xy<float> |
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) |
Functions | |
void | __builtin_five_bit_hd_gamma_bitshift (CRGB colors, CRGB colors_scale, uint8_t global_brightness, CRGB *out_colors, uint8_t *out_power_5bit) |
void | AnimartrixLoop (Animartrix &self, uint32_t now) |
void | bilinearExpand (const CRGB *input, CRGB *output, uint16_t inputWidth, uint16_t inputHeight, fl::XYMap xyMap) |
void | bilinearExpandArbitrary (const CRGB *input, CRGB *output, uint16_t inputWidth, uint16_t inputHeight, fl::XYMap xyMap) |
Performs bilinear interpolation for upscaling an image. | |
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 | bilinearExpandPowerOf2 (const CRGB *input, CRGB *output, uint8_t inputWidth, uint8_t inputHeight, fl::XYMap xyMap) |
Performs bilinear interpolation for upscaling an image. | |
uint8_t | bilinearInterpolate (uint8_t v00, uint8_t v10, uint8_t v01, uint8_t v11, uint16_t dx, uint16_t dy) |
uint8_t | bilinearInterpolateFloat (uint8_t v00, uint8_t v10, uint8_t v01, uint8_t v11, float dx, float dy) |
uint8_t | bilinearInterpolatePowerOf2 (uint8_t v00, uint8_t v10, uint8_t v01, uint8_t v11, uint8_t dx, uint8_t dy) |
static FASTLED_FORCE_INLINE int16_t | cos16lut (uint16_t angle) |
static FASTLED_FORCE_INLINE int32_t | cos32 (uint32_t angle) |
void | drawSquare (void *, uint16_t, uint16_t, int, int, uint32_t, uint32_t) |
void | fadeToColorBy (void *, uint16_t, uint32_t, uint8_t) |
const char * | fastled_file_offset (const char *file) |
FASTLED_SMART_PTR (Animartrix) | |
FASTLED_SMART_PTR (ByteStream) | |
FASTLED_SMART_PTR (ByteStreamMemory) | |
FASTLED_SMART_PTR (Cylon) | |
FASTLED_SMART_PTR (DemoReel100) | |
FASTLED_SMART_PTR (DigitalPinImpl) | |
FASTLED_SMART_PTR (FileHandle) | |
FASTLED_SMART_PTR (FileSystem) | |
FASTLED_SMART_PTR (Fire2012) | |
Simple one-dimensional fire animation function. | |
FASTLED_SMART_PTR (Frame) | |
FASTLED_SMART_PTR (FrameInterpolator) | |
FASTLED_SMART_PTR (FsImpl) | |
FASTLED_SMART_PTR (Fx) | |
FASTLED_SMART_PTR (Fx2d) | |
FASTLED_SMART_PTR (FxLayer) | |
FASTLED_SMART_PTR (NoisePalette) | |
FASTLED_SMART_PTR (NoiseWave) | |
FASTLED_SMART_PTR (Pacifica) | |
FASTLED_SMART_PTR (PixelStream) | |
FASTLED_SMART_PTR (Pride2015) | |
FASTLED_SMART_PTR (RedSquare) | |
FASTLED_SMART_PTR (ScaleUp) | |
FASTLED_SMART_PTR (StringHolder) | |
FASTLED_SMART_PTR (TimeFunction) | |
FASTLED_SMART_PTR (TimeScale) | |
FASTLED_SMART_PTR (TwinkleFox) | |
FASTLED_SMART_PTR (VideoFxWrapper) | |
FASTLED_SMART_PTR (VideoImpl) | |
FASTLED_SMART_PTR_NO_FWD (LUT16) | |
FASTLED_SMART_PTR_NO_FWD (LUTXYFLOAT) | |
FASTLED_UI_DEFINE_OPERATORS (UIButton) | |
FASTLED_UI_DEFINE_OPERATORS (UICheckbox) | |
FASTLED_UI_DEFINE_OPERATORS (UINumberField) | |
FASTLED_UI_DEFINE_OPERATORS (UISlider) | |
uint8_t | five_bit_bitshift (uint16_t r16, uint16_t g16, uint16_t b16, uint8_t brightness, CRGB *out, uint8_t *out_power_5bit) |
FASTLED_FORCE_INLINE void | five_bit_hd_gamma_bitshift (CRGB colors, CRGB colors_scale, uint8_t global_brightness, CRGB *out_colors, uint8_t *out_power_5bit) |
void | five_bit_hd_gamma_function (CRGB color, uint16_t *r16, uint16_t *g16, uint16_t *b16) |
void * | LargeBlockAllocate (size_t size, bool zero) |
void | LargeBlockDeallocate (void *ptr) |
FsImplPtr | make_sdcard_filesystem (int cs_pin) |
bool | parseJson (const char *json, fl::JsonDocument *doc, Str *_error) |
void | SetLargeBlockAllocator (void *(*alloc)(size_t), void(*free)(void *)) |
static FASTLED_FORCE_INLINE int16_t | sin16lut (uint16_t angle) |
static FASTLED_FORCE_INLINE int32_t | sin32 (uint32_t angle) |
void | toJson (const fl::JsonDocument &doc, Str *jsonBuffer) |
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_line_by_line (uint16_t x, uint16_t y, uint16_t width, uint16_t height) |
FASTLED_FORCE_INLINE uint16_t | xy_serpentine (uint16_t x, uint16_t y, uint16_t width, uint16_t height) |
Variables | |
const TProgmemRGBPalette16 * | ActivePaletteList [] |
static const AnimartrixEntry | ANIMATION_TABLE [] |
const TProgmemRGBPalette16 | BlueWhite_p |
const int16_t * | cosArray = &sinLut[64] |
const TProgmemRGBPalette16 | FairyLight_p |
const TProgmemRGBPalette16 | Holly_p |
const TProgmemRGBPalette16 | Ice_p |
const TProgmemRGBPalette16 | RedGreenWhite_p |
const TProgmemRGBPalette16 | RedWhite_p |
const TProgmemRGBPalette16 | RetroC9_p |
const int16_t * | sinArray = &sinLut[0] |
const int16_t | sinLut [] |
const TProgmemRGBPalette16 | Snow_p |
struct fl::enable_if< true, T > |
class fl::JsonDocument |
union fl::Pixel.__unnamed0__ |
Class Members | ||
---|---|---|
struct Pixel.__unnamed0__.__unnamed0__ | __unnamed__ | |
uint8_t | raw[3] |
typedef int64_t fl::cycle_t |
using fl::enable_if_t = typename enable_if<Condition, T>::type |
Definition at line 29 of file template_magic.h.
using fl::is_derived = enable_if_t<is_base_of<Base, Derived>::value> |
Definition at line 112 of file template_magic.h.
typedef LUT<pair_xy_float> fl::LUTXYFLOAT |
using fl::pair_xy_float = pair_xy<float> |
typedef uint16_t(* fl::XFunction) (uint16_t x, uint16_t length) |
enum fl::AnimartrixAnim |
Definition at line 26 of file animartrix.hpp.
Enumerator | |
---|---|
kFiveBitGammaCorrectionMode_Null | |
kFiveBitGammaCorrectionMode_BitShift |
Definition at line 14 of file five_bit_hd_gamma.h.
enum fl::InsertResult |
Enumerator | |
---|---|
kInserted | |
kExists | |
kMaxSize |
Definition at line 10 of file insert_result.h.
|
strong |
void fl::__builtin_five_bit_hd_gamma_bitshift | ( | CRGB | colors, |
CRGB | colors_scale, | ||
uint8_t | global_brightness, | ||
CRGB * | out_colors, | ||
uint8_t * | out_power_5bit ) |
Definition at line 130 of file five_bit_hd_gamma.cpp.
References five_bit_bitshift(), five_bit_hd_gamma_function(), and scale16by8().
Referenced by five_bit_hd_gamma_bitshift().
void fl::AnimartrixLoop | ( | Animartrix & | self, |
uint32_t | now ) |
Definition at line 162 of file animartrix.hpp.
|
inline |
Definition at line 37 of file bilinear_expansion.h.
References bilinearExpandArbitrary(), bilinearExpandPowerOf2(), and xyMap.
Referenced by fl::ScaleUp::expand().
void fl::bilinearExpandArbitrary | ( | const CRGB * | input, |
CRGB * | output, | ||
uint16_t | inputWidth, | ||
uint16_t | inputHeight, | ||
fl::XYMap | xyMap ) |
Performs bilinear interpolation for upscaling an image.
output | The output grid to write into the interpolated values. |
input | The input grid to read from. |
inputWidth | The width of the input grid. |
inputHeight | The height of the input grid. |
xyMap | The 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.
References bilinearInterpolate(), x, xyMap, and y.
Referenced by bilinearExpand(), and fl::ScaleUp::expand().
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.
References bilinearInterpolateFloat(), x, xyMap, and y.
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.
References bilinearInterpolateFloat(), x, xyMap, and y.
Referenced by fl::ScaleUp::expand().
void fl::bilinearExpandPowerOf2 | ( | const CRGB * | input, |
CRGB * | output, | ||
uint8_t | inputWidth, | ||
uint8_t | inputHeight, | ||
fl::XYMap | xyMap ) |
Performs bilinear interpolation for upscaling an image.
output | The output grid to write into the interpolated values. |
input | The input grid to read from. |
inputWidth | The width of the input grid. |
inputHeight | The height of the input grid. |
xyMap | The 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.
References bilinearInterpolatePowerOf2(), x, xyMap, and y.
Referenced by bilinearExpand(), and fl::ScaleUp::expand().
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.
Referenced by bilinearExpandArbitrary().
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.
Referenced by bilinearExpandArbitraryFloat(), and bilinearExpandFloat().
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.
Referenced by bilinearExpandPowerOf2().
|
static |
Definition at line 63 of file sin32.h.
References cosArray, and FASTLED_FORCE_INLINE.
|
static |
void fl::drawSquare | ( | void * | , |
uint16_t | , | ||
uint16_t | , | ||
int | , | ||
int | , | ||
uint32_t | , | ||
uint32_t | ) |
void fl::fadeToColorBy | ( | void * | , |
uint16_t | , | ||
uint32_t | , | ||
uint8_t | ) |
|
inline |
Definition at line 8 of file dbg.h.
References p.
fl::FASTLED_SMART_PTR | ( | Animartrix | ) |
fl::FASTLED_SMART_PTR | ( | ByteStream | ) |
fl::FASTLED_SMART_PTR | ( | ByteStreamMemory | ) |
fl::FASTLED_SMART_PTR | ( | Cylon | ) |
fl::FASTLED_SMART_PTR | ( | DemoReel100 | ) |
fl::FASTLED_SMART_PTR | ( | DigitalPinImpl | ) |
fl::FASTLED_SMART_PTR | ( | FileHandle | ) |
fl::FASTLED_SMART_PTR | ( | FileSystem | ) |
fl::FASTLED_SMART_PTR | ( | Fire2012 | ) |
Simple one-dimensional fire animation function.
fl::FASTLED_SMART_PTR | ( | Frame | ) |
fl::FASTLED_SMART_PTR | ( | FrameInterpolator | ) |
fl::FASTLED_SMART_PTR | ( | FsImpl | ) |
fl::FASTLED_SMART_PTR | ( | Fx | ) |
fl::FASTLED_SMART_PTR | ( | Fx2d | ) |
fl::FASTLED_SMART_PTR | ( | FxLayer | ) |
fl::FASTLED_SMART_PTR | ( | NoisePalette | ) |
fl::FASTLED_SMART_PTR | ( | NoiseWave | ) |
fl::FASTLED_SMART_PTR | ( | Pacifica | ) |
fl::FASTLED_SMART_PTR | ( | PixelStream | ) |
fl::FASTLED_SMART_PTR | ( | Pride2015 | ) |
fl::FASTLED_SMART_PTR | ( | RedSquare | ) |
fl::FASTLED_SMART_PTR | ( | ScaleUp | ) |
fl::FASTLED_SMART_PTR | ( | StringHolder | ) |
fl::FASTLED_SMART_PTR | ( | TimeFunction | ) |
fl::FASTLED_SMART_PTR | ( | TimeScale | ) |
fl::FASTLED_SMART_PTR | ( | TwinkleFox | ) |
fl::FASTLED_SMART_PTR | ( | VideoFxWrapper | ) |
fl::FASTLED_SMART_PTR | ( | VideoImpl | ) |
fl::FASTLED_SMART_PTR_NO_FWD | ( | LUT16 | ) |
fl::FASTLED_SMART_PTR_NO_FWD | ( | LUTXYFLOAT | ) |
fl::FASTLED_UI_DEFINE_OPERATORS | ( | UIButton | ) |
fl::FASTLED_UI_DEFINE_OPERATORS | ( | UICheckbox | ) |
fl::FASTLED_UI_DEFINE_OPERATORS | ( | UINumberField | ) |
fl::FASTLED_UI_DEFINE_OPERATORS | ( | UISlider | ) |
uint8_t fl::five_bit_bitshift | ( | uint16_t | r16, |
uint16_t | g16, | ||
uint16_t | b16, | ||
uint8_t | brightness, | ||
CRGB * | out, | ||
uint8_t * | out_power_5bit ) |
Definition at line 73 of file five_bit_hd_gamma.cpp.
References brightness, brightness_bitshifter16(), brightness_bitshifter8(), map16_to_8(), and scale16by8().
Referenced by __builtin_five_bit_hd_gamma_bitshift().
void fl::five_bit_hd_gamma_bitshift | ( | CRGB | colors, |
CRGB | colors_scale, | ||
uint8_t | global_brightness, | ||
CRGB * | out_colors, | ||
uint8_t * | out_power_5bit ) |
Definition at line 57 of file five_bit_hd_gamma.h.
References __builtin_five_bit_hd_gamma_bitshift().
Referenced by PixelController< RGB_ORDER, LANES, MASK >::loadAndScale_APA102_HD().
void fl::five_bit_hd_gamma_function | ( | CRGB | color, |
uint16_t * | r16, | ||
uint16_t * | g16, | ||
uint16_t * | b16 ) |
Definition at line 28 of file five_bit_hd_gamma.cpp.
References map8_to_16(), and scale16by8().
Referenced by __builtin_five_bit_hd_gamma_bitshift().
void * fl::LargeBlockAllocate | ( | size_t | size, |
bool | zero ) |
Definition at line 42 of file allocator.cpp.
Referenced by fl::Frame::Frame(), and fl::LargeBlockAllocator< T >::Alloc().
void fl::LargeBlockDeallocate | ( | void * | ptr | ) |
Definition at line 50 of file allocator.cpp.
Referenced by fl::Frame::~Frame(), and fl::LargeBlockAllocator< T >::Free().
FsImplPtr fl::make_sdcard_filesystem | ( | int | cs_pin | ) |
Definition at line 190 of file file_system.cpp.
References FASTLED_UNUSED.
Referenced by fl::FileSystem::beginSd().
bool fl::parseJson | ( | const char * | json, |
fl::JsonDocument * | doc, | ||
Str * | _error ) |
Definition at line 6 of file json.cpp.
References fl::StrN< SIZE >::c_str().
Referenced by fl::ScreenMap::ParseJson(), and fl::FileSystem::readJson().
void fl::SetLargeBlockAllocator | ( | void *(* | alloc )(size_t), |
void(* | free )(void *) ) |
Definition at line 37 of file allocator.cpp.
|
static |
Definition at line 54 of file sin32.h.
References FASTLED_FORCE_INLINE, and sinArray.
|
static |
void fl::toJson | ( | const fl::JsonDocument & | doc, |
Str * | jsonBuffer ) |
Definition at line 24 of file json.cpp.
Referenced by fl::ScreenMap::toJsonStr().
FASTLED_FORCE_INLINE uint16_t fl::x_linear | ( | uint16_t | x, |
uint16_t | length ) |
Definition at line 14 of file xmap.h.
References FASTLED_FORCE_INLINE, and x.
Referenced by fl::XMap::mapToIndex().
FASTLED_FORCE_INLINE uint16_t fl::x_reverse | ( | uint16_t | x, |
uint16_t | length ) |
Definition at line 19 of file xmap.h.
References FASTLED_FORCE_INLINE, and x.
Referenced by fl::XMap::mapToIndex().
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.
References FASTLED_FORCE_INLINE, x, and y.
Referenced by fl::XYMap::mapToIndex().
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.
References FASTLED_FORCE_INLINE, x, and y.
Referenced by fl::XYMap::mapToIndex().
const TProgmemRGBPalette16* fl::ActivePaletteList[] |
Definition at line 295 of file twinklefox.h.
Referenced by fl::TwinkleFox::chooseNextColorPalette().
|
static |
Definition at line 177 of file animartrix.hpp.
Referenced by fl::Animartrix::getAnimationName(), and fl::FastLEDANIMartRIX::loop().
const TProgmemRGBPalette16 fl::BlueWhite_p |
const int16_t * fl::cosArray = &sinLut[64] |
Definition at line 33 of file sin32.cpp.
Referenced by cos16lut(), and cos32().
const TProgmemRGBPalette16 fl::FairyLight_p |
Definition at line 260 of file twinklefox.h.
const TProgmemRGBPalette16 fl::Holly_p |
Definition at line 245 of file twinklefox.h.
const TProgmemRGBPalette16 fl::Ice_p |
Definition at line 288 of file twinklefox.h.
const TProgmemRGBPalette16 fl::RedGreenWhite_p |
const TProgmemRGBPalette16 fl::RedWhite_p |
const TProgmemRGBPalette16 fl::RetroC9_p |
Definition at line 283 of file twinklefox.h.
const int16_t * fl::sinArray = &sinLut[0] |
Definition at line 31 of file sin32.cpp.
Referenced by sin16lut(), and sin32().
const int16_t fl::sinLut[] |
Definition at line 7 of file sin32.cpp.
const TProgmemRGBPalette16 fl::Snow_p |
Definition at line 278 of file twinklefox.h.