FastLED 3.9.15
|
IMPORTANT!
Implements a simple red square effect for 2D LED grids.
This file MUST not
The trace system provides source location information for debugging.
fl::TracePoint
: A tuple of (file, line, timestamp)FL_TRACE
: Macro that captures current file, line, and timestamp Namespaces | |
namespace | anonymous_namespace{allocator.cpp} |
namespace | anonymous_namespace{audio.cpp} |
namespace | anonymous_namespace{blur.cpp} |
namespace | anonymous_namespace{corkscrew.cpp} |
namespace | anonymous_namespace{frame_tracker.cpp} |
namespace | anonymous_namespace{gradient.cpp} |
namespace | anonymous_namespace{istream.cpp} |
namespace | anonymous_namespace{line_simplification.cpp} |
namespace | anonymous_namespace{noise_woryley.cpp} |
namespace | anonymous_namespace{pir.cpp} |
namespace | anonymous_namespace{rgbw.cpp} |
namespace | anonymous_namespace{task.cpp} |
namespace | anonymous_namespace{tile2x2.cpp} |
namespace | anonymous_namespace{time.cpp} |
namespace | anonymous_namespace{wave.cpp} |
namespace | anonymous_namespace{xypath.cpp} |
namespace | detail |
namespace | json2 |
namespace | printf_detail |
namespace | string_functions |
namespace | wave_detail |
namespace | xypath_detail |
Typedefs | |
typedef u16 | accum124 |
no direct ANSI counterpart. 12 bits int, 4 bits fraction | |
typedef u32 | accum1616 |
ANSI: signed _Accum. 16 bits int, 16 bits fraction. | |
typedef u16 | accum88 |
ANSI: unsigned short _Accum. 8 bits int, 8 bits fraction. | |
template<typename T> | |
using | add_pointer_t = typename add_pointer<T>::type |
typedef void(* | advanceDataFunction) (void *pixel_controller) |
template<typename T, fl::size N> | |
using | allocator_inlined_psram = allocator_inlined<T, N, fl::allocator_psram<T>> |
template<typename T, fl::size N> | |
using | allocator_inlined_slab = allocator_inlined<T, N, fl::allocator_slab<T>> |
template<typename T, fl::size N, fl::size SLAB_SIZE = 8> | |
using | allocator_inlined_slab_psram = allocator_inlined<T, N, fl::allocator_slab<T, SLAB_SIZE>> |
using | alpha16 |
template<typename T> | |
using | atomic = AtomicFake<T> |
using | atomic_bool = atomic<bool> |
using | atomic_i32 = atomic<fl::i32> |
using | atomic_int = atomic<int> |
using | atomic_u32 = atomic<fl::u32> |
using | atomic_uint = atomic<unsigned int> |
template<typename T, typename U> | |
using | common_type_t = typename common_type<T, U>::type |
template<bool B, typename T, typename F> | |
using | conditional_t = typename conditional<B, T, F>::type |
typedef fl::i64 | cycle_t |
8.8 fixed point (signed) value | |
template<typename T> | |
using | decay_t = typename decay<T>::type |
template<typename T> | |
using | DefaultLess = less<T> |
typedef deque< double > | deque_double |
typedef deque< float > | deque_float |
typedef deque< int > | deque_int |
template<bool Condition, typename T = void> | |
using | enable_if_t = typename enable_if<Condition, T>::type |
template<typename T> | |
using | equal_to = EqualTo<T> |
using | false_type = integral_constant<bool, false> |
using | FetchCallback = fl::function<void(const response&)> |
Callback type for simple fetch responses (backward compatible) | |
template<typename Key, size N> | |
using | FixedSet = VectorSetFixed<Key, N> |
template<typename Key, typename T, typename Compare = fl::less<Key>> | |
using | fl_map = MapRedBlackTree<Key, T, Compare, fl::allocator_slab<char>> |
typedef u16 | fract16 |
ANSI: unsigned _Fract. | |
typedef u32 | fract32 |
ANSI: unsigned long _Fract. 32 bits int, 32 bits fraction. | |
typedef u8 | fract8 |
Fixed-Point Fractional Types. | |
typedef void(* | getHdScaleFunction) (void *pixel_controller, uint8_t *c0, uint8_t *c1, uint8_t *c2, uint8_t *brightness) |
typedef uint8_t(* | globalBrightness) (void *pixel_controller) |
typedef bool(* | hasFunction) (void *pixel_controller, int n) |
template<typename Key, typename T, typename Hash = Hash<Key>, typename KeyEqual = equal_to<Key>> | |
using | hash_map = HashMap<Key, T, Hash, KeyEqual> |
template<typename Key, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>> | |
using | hash_set = HashSet<Key, Hash, KeyEqual> |
typedef signed char | i8 |
template<typename T> | |
using | intrusive_ptr = fl::Ptr<T> |
template<typename Base, typename Derived> | |
using | is_derived = enable_if_t<is_base_of<Base, Derived>::value> |
using | JsonArray = fl::vector<fl::shared_ptr<JsonValue>> |
using | JsonObject = fl::HashMap<fl::string, fl::shared_ptr<JsonValue>> |
typedef void(* | loadAndScale_WS2816_HDFunction) (void *pixel_controller, uint16_t *b0_out, uint16_t *b1_out, uint16_t *b2_out) |
typedef void(* | loadAndScaleRGBFunction) (void *pixel_controller, uint8_t *r_out, uint8_t *g_out, uint8_t *b_out) |
typedef void(* | loadAndScaleRGBWFunction) (void *pixel_controller, Rgbw rgbw, uint8_t *b0_out, uint8_t *b1_out, uint8_t *b2_out, uint8_t *b3_out) |
typedef LUT< u16 > | LUT16 |
typedef LUT< vec2< u16 > > | LUTXY16 |
typedef LUT< vec2f > | LUTXYFLOAT |
typedef LUT< vec3f > | LUTXYZFLOAT |
using | mutex = MutexFake<void> |
typedef decltype(nullptr) | nullptr_t |
template<typename T> | |
using | optional = Optional<T> |
template<typename T1, typename T2> | |
using | Pair = pair<T1, T2> |
using | pair_xy_float = vec2<float> |
using | pair_xyz_float = vec3<float> |
template<typename T> | |
using | PromiseResult = result<T> |
Type alias for backwards compatibility. | |
typedef __PTRDIFF_TYPE__ | ptrdiff_t |
template<typename T> | |
using | remove_cv_t = typename remove_cv<T>::type |
template<typename T> | |
using | remove_reference_t = typename remove_reference<T>::type |
typedef void(* | rgb_2_rgbw_function) (uint16_t w_color_temperature, uint8_t r, uint8_t g, uint8_t b, uint8_t r_scale, uint8_t g_scale, uint8_t b_scale, uint8_t *out_r, uint8_t *out_g, uint8_t *out_b, uint8_t *out_w) |
typedef i32 | saccum114 |
no direct ANSI counterpart. 1 bit int, 14 bits fraction | |
typedef i32 | saccum1516 |
ANSI: signed _Accum. 15 bits int, 16 bits fraction. | |
typedef i16 | saccum78 |
ANSI: signed short _Accum. 7 bits int, 8 bits fraction. | |
template<typename T, typename Deleter = default_delete<T>> | |
using | scoped_ptr = unique_ptr<T, Deleter> |
template<typename T, fl::size N> | |
using | set_inlined = fl::set<T, fl::allocator_inlined_slab<T, N>> |
typedef i16 | sfract15 |
ANSI: signed _Fract. | |
typedef i32 | sfract31 |
ANSI: signed long _Fract. 31 bits int, 1 bit fraction. | |
typedef i8 | sfract7 |
ANSI: signed short _Fract. | |
typedef __SIZE_TYPE__ | size_t |
typedef int(* | sizeFunction) (void *pixel_controller) |
template<typename T> | |
using | span = Slice<T> |
using | sstream = StrStream |
typedef void(* | stepDitheringFunction) (void *pixel_controller) |
using | Str = fl::string |
template<typename T> | |
using | ThreadLocal = ThreadLocalFake<T> |
using | TracePoint = fl::tuple<const char*, int, uint32_t> |
A structure to hold source trace information. | |
using | true_type = integral_constant<bool, true> |
typedef unsigned char | u8 |
typedef unsigned int | uint |
template<typename Key, typename T, typename Hash = Hash<Key>, typename KeyEqual = equal_to<Key>> | |
using | unordered_map = HashMap<Key, T, Hash, KeyEqual> |
using | vec2f = vec2<float> |
using | vec2i16 = vec2<i16> |
using | vec2u8 = vec2<fl::u8> |
using | vec3f = vec3<float> |
template<typename T, typename Allocator = fl::allocator<T>> | |
using | vector = HeapVector<T, Allocator> |
template<typename T, fl::size INLINED_SIZE> | |
using | vector_fixed = FixedVector<T, INLINED_SIZE> |
template<typename T, fl::size INLINED_SIZE = 64> | |
using | vector_inlined = InlinedVector<T, INLINED_SIZE> |
typedef u16(* | XFunction) (u16 x, u16 length) |
typedef u16(* | XYFunction) (u16 x, u16 y, u16 width, u16 height) |
using | XYRaster = XYRasterU8Sparse |
Functions | |
template<typename T, typename A, typename... Args> | |
shared_ptr< T > | allocate_shared (const A &alloc, Args &&... args) |
void | AnimartrixLoop (Animartrix &self, fl::u32 now) |
CRGB | applyGamma_video (const CRGB &orig, float gamma) |
CRGB | applyGamma_video (const CRGB &orig, float gammaR, float gammaG, float gammaB) |
fl::u8 | applyGamma_video (fl::u8 brightness, float gamma) |
size_t | async_active_tasks () |
Get the number of active async tasks across all systems. | |
bool | async_has_tasks () |
Check if any async systems have active tasks. | |
void | async_run () |
Run all registered async tasks once. | |
void | async_yield () |
Platform-specific async yield function. | |
int | available () |
template<typename T> | |
fl::result< T > | await_top_level (fl::promise< T > promise) |
Synchronously wait for a promise to complete (ONLY safe in top-level contexts) | |
template<typename Container> | |
constexpr auto | begin (const Container &c) -> decltype(c.begin()) |
template<typename Container> | |
constexpr auto | begin (Container &c) -> decltype(c.begin()) |
template<typename T, fl::size N> | |
constexpr T * | begin (T(&array)[N]) noexcept |
u8 | bilinearInterpolate (u8 v00, u8 v10, u8 v01, u8 v11, u16 dx, u16 dy) |
u8 | bilinearInterpolatePowerOf2 (u8 v00, u8 v10, u8 v01, u8 v11, u8 dx, u8 dy) |
template<typename To, typename From> | |
To | bit_cast (const From &from) noexcept |
template<typename To> | |
const To * | bit_cast_ptr (const void *storage) noexcept |
template<typename To> | |
To * | bit_cast_ptr (void *storage) noexcept |
CHSV | blend (const CHSV &p1, const CHSV &p2, fract8 amountOfP2, TGradientDirectionCode directionCode) |
CHSV * | blend (const CHSV *src1, const CHSV *src2, CHSV *dest, fl::u16 count, fract8 amountOfsrc2, TGradientDirectionCode directionCode) |
CRGB | blend (const CRGB &p1, const CRGB &p2, fract8 amountOfP2) |
CRGB * | blend (const CRGB *src1, const CRGB *src2, CRGB *dest, fl::u16 count, fract8 amountOfsrc2) |
void | blur1d (CRGB *leds, fl::u16 numLeds, fract8 blur_amount) |
void | blur1d (CRGB *leds, u16 numLeds, fract8 blur_amount) |
One-dimensional blur filter. | |
void | blur2d (CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount) FASTLED_DEPRECATED("Use blur2d(... |
Legacy version of blur2d, which does not require an XYMap but instead implicitly binds to XY() function. | |
void | blur2d (CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount, const fl::XYMap &xymap) |
Two-dimensional blur filter. | |
void | blurColumns (CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount, const fl::XYMap &xymap) |
Perform a blur1d() on every column of a rectangular matrix. | |
void | blurRows (CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount, const fl::XYMap &xymap) |
Perform a blur1d() on every row of a rectangular matrix. | |
constexpr fl::u16 | calculateCorkscrewHeight (float totalTurns, fl::u16 numLeds) |
constexpr fl::u16 | calculateCorkscrewWidth (float totalTurns, fl::u16 numLeds) |
template<typename T> | |
T | ceil (T value) |
constexpr int | ceil_constexpr (float value) |
istream_real & | cin_real () |
template<typename T> | |
FASTLED_FORCE_INLINE T | clamp (T value, T min, T max) |
template<typename Container> | |
void | clear (Container &container) |
template<int N> | |
void | clear (CRGB(&arr)[N]) |
template<typename T> | |
void | clear (Grid< T > &grid) |
void | clear (Leds &leds) |
template<fl::size W, fl::size H> | |
void | clear (LedsXY< W, H > &leds) |
CHSV | ColorFromPalette (const CHSVPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
CHSV | ColorFromPalette (const CHSVPalette256 &pal, fl::u8 index, fl::u8 brightness, TBlendType) |
CHSV | ColorFromPalette (const CHSVPalette32 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
CRGB | ColorFromPalette (const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
CRGB | ColorFromPalette (const CRGBPalette256 &pal, fl::u8 index, fl::u8 brightness, TBlendType) |
CRGB | ColorFromPalette (const CRGBPalette32 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
CRGB | ColorFromPalette (const TProgmemRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
CRGB | ColorFromPalette (const TProgmemRGBPalette32 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
CRGB | ColorFromPaletteExtended (const CRGBPalette16 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) |
CRGB | ColorFromPaletteExtended (const CRGBPalette256 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) |
CRGB | ColorFromPaletteExtended (const CRGBPalette32 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) |
template<typename T, typename Y> | |
shared_ptr< T > | const_pointer_cast (const shared_ptr< Y > &other) noexcept |
static FASTLED_FORCE_INLINE i16 | cos16lut (u16 angle) |
static FASTLED_FORCE_INLINE i32 | cos32 (u32 angle) |
template<typename T> | |
add_rvalue_reference< T >::type | declval () noexcept |
fl_random & | default_random () |
Global default random number generator instance. | |
void | downscale (const CRGB *src, const XYMap &srcXY, CRGB *dst, const XYMap &dstXY) |
void | downscaleArbitrary (const CRGB *src, const XYMap &srcXY, CRGB *dst, const XYMap &dstXY) |
void | downscaleHalf (const CRGB *src, const XYMap &srcXY, CRGB *dst, const XYMap &dstXY) |
void | downscaleHalf (const CRGB *src, fl::u16 srcWidth, fl::u16 srcHeight, CRGB *dst) |
void | drawSquare (void *, uint16_t, uint16_t, int, int, uint32_t, uint32_t) |
void | ease16 (EaseType type, u16 *src, u16 *dst, u16 count) |
u16 | ease16 (EaseType type, u16 i) |
void | ease8 (EaseType type, u8 *src, u8 *dst, u8 count) |
u8 | ease8 (EaseType type, u8 i) |
u16 | easeInCubic16 (u16 i) |
16-bit cubic ease-in function Takes an input value 0-65535 and returns an eased value 0-65535 | |
u8 | easeInCubic8 (u8 i) |
8-bit cubic ease-in function Takes an input value 0-255 and returns an eased value 0-255 More pronounced acceleration than quadratic | |
u16 | easeInOutCubic16 (u16 i) |
16-bit cubic ease-in/ease-out function Takes an input value 0-65535 and returns an eased value 0-65535 | |
u8 | easeInOutCubic8 (u8 i) |
8-bit cubic ease-in/ease-out function Takes an input value 0-255 and returns an eased value 0-255 More pronounced easing curve than quadratic | |
u16 | easeInOutQuad16 (u16 i) |
16-bit quadratic ease-in/ease-out function Takes an input value 0-65535 and returns an eased value 0-65535 | |
u8 | easeInOutQuad8 (u8 i) |
8-bit quadratic ease-in/ease-out function Takes an input value 0-255 and returns an eased value 0-255 The curve starts slow, accelerates in the middle, then slows down again | |
u16 | easeInOutSine16 (u16 i) |
16-bit sine ease-in/ease-out function Takes an input value 0-65535 and returns an eased value 0-65535 | |
u8 | easeInOutSine8 (u8 i) |
8-bit sine ease-in/ease-out function Takes an input value 0-255 and returns an eased value 0-255 Smooth sinusoidal acceleration and deceleration | |
u16 | easeInQuad16 (u16 i) |
16-bit quadratic ease-in function Takes an input value 0-65535 and returns an eased value 0-65535 | |
u8 | easeInQuad8 (u8 i) |
8-bit quadratic ease-in function Takes an input value 0-255 and returns an eased value 0-255 The curve starts slow and accelerates (ease-in only) | |
u16 | easeInSine16 (u16 i) |
16-bit sine ease-in function Takes an input value 0-65535 and returns an eased value 0-65535 | |
u8 | easeInSine8 (u8 i) |
8-bit sine ease-in function Takes an input value 0-255 and returns an eased value 0-255 Smooth sinusoidal acceleration | |
u16 | easeOutCubic16 (u16 i) |
16-bit cubic ease-out function Takes an input value 0-65535 and returns an eased value 0-65535 | |
u8 | easeOutCubic8 (u8 i) |
8-bit cubic ease-out function Takes an input value 0-255 and returns an eased value 0-255 More pronounced deceleration than quadratic | |
u16 | easeOutQuad16 (u16 i) |
16-bit quadratic ease-out function Takes an input value 0-65535 and returns an eased value 0-65535 | |
u8 | easeOutQuad8 (u8 i) |
8-bit quadratic ease-out function Takes an input value 0-255 and returns an eased value 0-255 The curve starts fast and decelerates (ease-out only) | |
u16 | easeOutSine16 (u16 i) |
16-bit sine ease-out function Takes an input value 0-65535 and returns an eased value 0-65535 | |
u8 | easeOutSine8 (u8 i) |
8-bit sine ease-out function Takes an input value 0-255 and returns an eased value 0-255 Smooth sinusoidal deceleration | |
template<typename Container> | |
constexpr auto | end (const Container &c) -> decltype(c.end()) |
template<typename Container> | |
constexpr auto | end (Container &c) -> decltype(c.end()) |
template<typename T, fl::size N> | |
constexpr T * | end (T(&array)[N]) noexcept |
template<typename Iterator1, typename Iterator2> | |
bool | equal (Iterator1 first1, Iterator1 last1, Iterator2 first2) |
template<typename Iterator1, typename Iterator2, typename BinaryPredicate> | |
bool | equal (Iterator1 first1, Iterator1 last1, Iterator2 first2, BinaryPredicate pred) |
template<typename Iterator1, typename Iterator2> | |
bool | equal (Iterator1 first1, Iterator1 last1, Iterator2 first2, Iterator2 last2) |
template<typename Iterator1, typename Iterator2, typename BinaryPredicate> | |
bool | equal (Iterator1 first1, Iterator1 last1, Iterator2 first2, Iterator2 last2, BinaryPredicate pred) |
template<typename Container1, typename Container2> | |
bool | equal_container (const Container1 &c1, const Container2 &c2) |
template<typename Container1, typename Container2, typename BinaryPredicate> | |
bool | equal_container (const Container1 &c1, const Container2 &c2, BinaryPredicate pred) |
fl::promise< response > | execute_fetch_request (const fl::string &url, const fetch_options &request) |
Internal helper to execute a fetch request and return a promise. | |
template<typename T> | |
T | exp (T value) |
void | fade_raw (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) |
void | fade_video (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) |
void | fadeLightBy (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) |
void | fadeToBlackBy (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) |
void | fadeToColorBy (void *, uint16_t, uint32_t, uint8_t) |
void | fadeUsingColor (CRGB *leds, fl::u16 numLeds, const CRGB &colormask) |
static u32 | fast_hash32 (u32 x) noexcept |
static u32 | fast_hash64 (u64 x) noexcept |
const char * | fastled_file_offset (const char *file) |
FASTLED_SMART_PTR (Animartrix) | |
FASTLED_SMART_PTR (ArchimedeanSpiralPath) | |
FASTLED_SMART_PTR (AudioSampleImpl) | |
FASTLED_SMART_PTR (Blend2d) | |
FASTLED_SMART_PTR (ByteStream) | |
FASTLED_SMART_PTR (ByteStreamMemory) | |
FASTLED_SMART_PTR (CatmullRomParams) | |
FASTLED_SMART_PTR (CatmullRomPath) | |
FASTLED_SMART_PTR (CirclePath) | |
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 (GielisCurvePath) | |
FASTLED_SMART_PTR (HeartPath) | |
FASTLED_SMART_PTR (LinePath) | |
FASTLED_SMART_PTR (LinePathParams) | |
FASTLED_SMART_PTR (Luminova) | |
FASTLED_SMART_PTR (NoisePalette) | |
FASTLED_SMART_PTR (NoiseWave) | |
FASTLED_SMART_PTR (Pacifica) | |
FASTLED_SMART_PTR (PhyllotaxisPath) | |
FASTLED_SMART_PTR (PixelStream) | |
FASTLED_SMART_PTR (PointPath) | |
FASTLED_SMART_PTR (Pride2015) | |
FASTLED_SMART_PTR (RedSquare) | |
FASTLED_SMART_PTR (RosePath) | |
FASTLED_SMART_PTR (RosePathParams) | |
FASTLED_SMART_PTR (ScaleUp) | |
FASTLED_SMART_PTR (StringHolder) | |
FASTLED_SMART_PTR (TimeFunction) | |
FASTLED_SMART_PTR (TimeWarp) | |
FASTLED_SMART_PTR (TransformFloatImpl) | |
FASTLED_SMART_PTR (TwinkleFox) | |
FASTLED_SMART_PTR (VideoFxWrapper) | |
FASTLED_SMART_PTR (VideoImpl) | |
FASTLED_SMART_PTR (WaveCrgbGradientMap) | |
FASTLED_SMART_PTR (WaveCrgbMap) | |
FASTLED_SMART_PTR (WaveCrgbMapDefault) | |
FASTLED_SMART_PTR (WaveFx) | |
FASTLED_SMART_PTR (XYPath) | |
FASTLED_SMART_PTR (XYPathFunction) | |
FASTLED_SMART_PTR (XYPathGenerator) | |
FASTLED_SMART_PTR (XYPathRenderer) | |
FASTLED_SMART_PTR_NO_FWD (LUT16) | |
FASTLED_SMART_PTR_NO_FWD (LUTXY16) | |
FASTLED_SMART_PTR_NO_FWD (LUTXYFLOAT) | |
FASTLED_SMART_PTR_NO_FWD (LUTXYZFLOAT) | |
FASTLED_UI_DEFINE_OPERATORS (UIButton) | |
FASTLED_UI_DEFINE_OPERATORS (UICheckbox) | |
FASTLED_UI_DEFINE_OPERATORS (UIDropdown) | |
FASTLED_UI_DEFINE_OPERATORS (UINumberField) | |
FASTLED_UI_DEFINE_OPERATORS (UISlider) | |
void | fetch (const char *url, const FetchCallback &callback) |
Make an HTTP GET request with URL string literal (cross-platform) | |
void | fetch (const fl::string &url, const FetchCallback &callback) |
Make an HTTP GET request (cross-platform, backward compatible) | |
fl::size | fetch_active_requests () |
Get number of active requests. | |
fl::promise< response > | fetch_delete (const fl::string &url, const fetch_options &request=fetch_options("")) |
HTTP DELETE request. | |
fl::promise< response > | fetch_get (const fl::string &url, const fetch_options &request=fetch_options("")) |
HTTP GET request. | |
fl::promise< response > | fetch_head (const fl::string &url, const fetch_options &request=fetch_options("")) |
HTTP HEAD request. | |
fl::promise< response > | fetch_http_options (const fl::string &url, const fetch_options &request=fetch_options("")) |
HTTP OPTIONS request. | |
fl::promise< response > | fetch_patch (const fl::string &url, const fetch_options &request=fetch_options("")) |
HTTP PATCH request. | |
fl::promise< response > | fetch_post (const fl::string &url, const fetch_options &request=fetch_options("")) |
HTTP POST request. | |
fl::promise< response > | fetch_put (const fl::string &url, const fetch_options &request=fetch_options("")) |
HTTP PUT request. | |
fl::promise< response > | fetch_request (const fl::string &url, const RequestOptions &options=RequestOptions()) |
Generic request with options (like fetch(url, options)) | |
void | fetch_update () |
Legacy manual update for fetch promises (use fl::async_run() for new code) | |
template<typename Iterator, typename T> | |
void | fill (Iterator first, Iterator last, const T &value) |
template<typename T> | |
void | fill_gradient (T *targetArray, u16 numLeds, const CHSV &c1, const CHSV &c2, const CHSV &c3, const CHSV &c4, TGradientDirectionCode directionCode=SHORTEST_HUES) |
Fill a range of LEDs with a smooth HSV gradient between four HSV colors. | |
template<typename T> | |
void | fill_gradient (T *targetArray, u16 numLeds, const CHSV &c1, const CHSV &c2, const CHSV &c3, TGradientDirectionCode directionCode=SHORTEST_HUES) |
Fill a range of LEDs with a smooth HSV gradient between three HSV colors. | |
template<typename T> | |
void | fill_gradient (T *targetArray, u16 numLeds, const CHSV &c1, const CHSV &c2, TGradientDirectionCode directionCode=SHORTEST_HUES) |
Fill a range of LEDs with a smooth HSV gradient between two HSV colors. | |
template<typename T> | |
void | fill_gradient (T *targetArray, u16 startpos, CHSV startcolor, u16 endpos, CHSV endcolor, TGradientDirectionCode directionCode=SHORTEST_HUES) |
Fill a range of LEDs with a smooth HSV gradient between two HSV colors. | |
void | fill_gradient_RGB (CRGB *leds, u16 numLeds, const CRGB &c1, const CRGB &c2) |
Fill a range of LEDs with a smooth RGB gradient between two RGB colors. | |
void | fill_gradient_RGB (CRGB *leds, u16 numLeds, const CRGB &c1, const CRGB &c2, const CRGB &c3) |
Fill a range of LEDs with a smooth RGB gradient between three RGB colors. | |
void | fill_gradient_RGB (CRGB *leds, u16 numLeds, const CRGB &c1, const CRGB &c2, const CRGB &c3, const CRGB &c4) |
Fill a range of LEDs with a smooth RGB gradient between four RGB colors. | |
void | fill_gradient_RGB (CRGB *leds, u16 startpos, CRGB startcolor, u16 endpos, CRGB endcolor) |
Fill a range of LEDs with a smooth RGB gradient between two RGB colors. | |
void | fill_rainbow (struct CHSV *targetArray, int numToFill, fl::u8 initialhue, fl::u8 deltahue=5) |
Fill a range of LEDs with a rainbow of colors. | |
void | fill_rainbow (struct CRGB *targetArray, int numToFill, fl::u8 initialhue, fl::u8 deltahue=5) |
Fill a range of LEDs with a rainbow of colors. | |
void | fill_rainbow_circular (struct CHSV *targetArray, int numToFill, fl::u8 initialhue, bool reversed=false) |
Fill a range of LEDs with a rainbow of colors, so that the hues are continuous between the end of the strip and the beginning. | |
void | fill_rainbow_circular (struct CRGB *targetArray, int numToFill, fl::u8 initialhue, bool reversed=false) |
Fill a range of LEDs with a rainbow of colors, so that the hues are continuous between the end of the strip and the beginning. | |
void | fill_solid (struct CHSV *targetArray, int numToFill, const struct CHSV &color) |
Fill a range of LEDs with a solid color. | |
void | fill_solid (struct CRGB *targetArray, int numToFill, const struct CRGB &color) |
Fill a range of LEDs with a solid color. | |
template<typename Iterator, typename T> | |
Iterator | find (Iterator first, Iterator last, const T &value) |
template<typename Iterator, typename UnaryPredicate> | |
Iterator | find_if (Iterator first, Iterator last, UnaryPredicate pred) |
template<typename Iterator, typename UnaryPredicate> | |
Iterator | find_if_not (Iterator first, Iterator last, UnaryPredicate pred) |
void | five_bit_bitshift (u16 r16, u16 g16, u16 b16, fl::u8 brightness, CRGB *out, fl::u8 *out_power_5bit) |
void | five_bit_bitshift (uint16_t r16, uint16_t g16, uint16_t b16, uint8_t brightness, CRGB *out, uint8_t *out_power_5bit) |
void | five_bit_hd_gamma_bitshift (CRGB colors, CRGB colors_scale, fl::u8 global_brightness, CRGB *out_colors, fl::u8 *out_power_5bit) |
void | five_bit_hd_gamma_function (CRGB color, u16 *r16, u16 *g16, u16 *b16) |
template<typename T> | |
T | fl_abs (T value) |
FL_DISABLE_WARNING_PUSH | FL_DISABLE_WARNING (sign-compare) FL_DISABLE_WARNING_FLOAT_CONVERSION FL_DISABLE_WARNING_SIGN_CONVERSION FL_DISABLE_WARNING_IMPLICIT_INT_CONVERSION FL_DISABLE_WARNING_FLOAT_CONVERSION template< typename T |
FL_DISABLE_WARNING_PUSH | FL_DISABLE_WARNING (unused-function) static bool canBeRepresentedAsFloat(double value) |
template<typename T, typename U> | |
common_type_t< T, U > | fl_max (T a, U b) |
FL_DISABLE_WARNING_PUSH U common_type_t< T, U > | fl_min (T a, U b) |
template<typename T> | |
T | floor (T value) |
template<typename T> | |
constexpr T && | forward (typename remove_reference< T >::type &&t) noexcept |
template<typename T> | |
constexpr T && | forward (typename remove_reference< T >::type &t) noexcept |
void | Free (void *ptr) |
void | gamma16 (const CRGB &rgb, u16 *r16, u16 *g16, u16 *b16) |
template<fl::size I, typename T1, typename T2> | |
const pair_element< I, T1, T2 >::type & | get (const pair< T1, T2 > &p) noexcept |
template<typename T, typename T1, typename T2> | |
const T & | get (const pair< T1, T2 > &p) noexcept |
template<size_t I, typename Head, typename... Tail> | |
enable_if< I==0, constHead & >::type | get (const tuple< Head, Tail... > &t) |
template<size_t I, typename Head, typename... Tail> | |
enable_if< I!=0, consttypenametuple_element< I, tuple< Head, Tail... > >::type & >::type | get (const tuple< Head, Tail... > &t) |
template<fl::size I, typename T1, typename T2> | |
pair_element< I, T1, T2 >::type && | get (pair< T1, T2 > &&p) noexcept |
template<typename T, typename T1, typename T2> | |
T && | get (pair< T1, T2 > &&p) noexcept |
template<fl::size I, typename T1, typename T2> | |
pair_element< I, T1, T2 >::type & | get (pair< T1, T2 > &p) noexcept |
template<typename T, typename T1, typename T2> | |
T & | get (pair< T1, T2 > &p) noexcept |
template<size_t I, typename Head, typename... Tail> | |
enable_if< I==0, Head && >::type | get (tuple< Head, Tail... > &&t) |
template<size_t I, typename Head, typename... Tail> | |
enable_if< I!=0, typenametuple_element< I, tuple< Head, Tail... > >::type && >::type | get (tuple< Head, Tail... > &&t) |
template<size_t I, typename Head, typename... Tail> | |
enable_if< I==0, Head & >::type | get (tuple< Head, Tail... > &t) |
template<size_t I, typename Head, typename... Tail> | |
enable_if< I!=0, typenametuple_element< I, tuple< Head, Tail... > >::type & >::type | get (tuple< Head, Tail... > &t) |
JsonObject & | get_empty_json_object () |
FL_DISABLE_WARNING_POP JsonValue & | get_null_value () |
fl::string | getAnimartrixName (int animation) |
static u32 | hash_pair (u32 a, u32 b, u32 seed=0) noexcept |
CRGB | HeatColor (fl::u8 temperature) |
static CRGB | HSV16toRGB (const HSV16 &hsv) |
template<typename T> | |
T * | int_to_ptr (uptr value) noexcept |
void | internal_builtin_five_bit_hd_gamma_bitshift (CRGB colors, CRGB colors_scale, fl::u8 global_brightness, CRGB *out_colors, fl::u8 *out_power_5bit) |
template<typename F, typename... Args> | |
auto | invoke (F &&f, Args &&... args) -> enable_if_t<!is_member_function_pointer< typename remove_reference< F >::type >::value &&!detail::is_member_data_pointer< typename remove_reference< F >::type >::value, decltype(fl::forward< F >(f)(fl::forward< Args >(args)...))> |
template<typename F, typename T1> | |
auto | invoke (F &&f, T1 &&t1) -> enable_if_t< detail::is_member_data_pointer< typename remove_reference< F >::type >::value &&!detail::use_pointer_syntax< T1 >::value, decltype(fl::forward< T1 >(t1).*f)> |
template<typename F, typename T1, typename... Args> | |
auto | invoke (F &&f, T1 &&t1, Args &&... args) -> enable_if_t< is_member_function_pointer< typename remove_reference< F >::type >::value &&!detail::use_pointer_syntax< T1 >::value, decltype((fl::forward< T1 >(t1).*f)(fl::forward< Args >(args)...))> |
fl::vector< float > | jsonArrayToFloatVector (const fl::Json &jsonArray) |
fl::u8 | lsrX4 (fl::u8 dividend) |
Helper function to divide a number by 16, aka four logical shift right (LSR)'s. | |
template<typename T> | |
result< T > | make_error (const char *message) |
Helper function to create an error result from C-string. | |
template<typename T> | |
result< T > | make_error (const Error &error) |
Helper function to create an error result. | |
template<typename T> | |
result< T > | make_error (const fl::string &message) |
Helper function to create an error result from string. | |
template<typename T> | |
result< T > | make_error (Error &&error) |
Helper function to create an error result (move) | |
template<typename T, typename... Args> | |
intrusive_ptr< T > | make_intrusive (Args &&... args) |
template<typename T> | |
optional< T > | make_optional (const T &value) |
template<typename T> | |
optional< T > | make_optional (T &&value) |
template<typename T1, typename T2> | |
pair< typename fl::decay< T1 >::type, typename fl::decay< T2 >::type > | make_pair (T1 &&t, T2 &&u) |
template<typename T> | |
promise< T > | make_rejected_promise (const char *error_message) |
Convenience function to create a rejected promise (const char* overload) | |
template<typename T> | |
promise< T > | make_rejected_promise (const fl::string &error_message) |
Convenience function to create a rejected promise. | |
template<typename T> | |
promise< T > | make_resolved_promise (T value) |
Convenience function to create a resolved promise. | |
FsImplPtr | make_sdcard_filesystem (int cs_pin) |
template<typename T, typename... Args> | |
shared_ptr< T > | make_shared (Args &&... args) |
template<typename T> | |
shared_ptr< T > | make_shared_no_tracking (T &obj) |
template<typename T, typename... Args> | |
fl::shared_ptr< T > | make_shared_ptr (Args &&... args) |
template<typename T, typename Deleter, typename... Args> | |
shared_ptr< T > | make_shared_with_deleter (Deleter d, Args &&... args) |
template<typename T> | |
result< T > | make_success (const T &value) |
Helper function to create a successful result. | |
template<typename T> | |
result< T > | make_success (T &&value) |
Helper function to create a successful result (move) | |
template<typename... Ts> | |
tuple< typename fl::decay< Ts >::type... > | make_tuple (Ts &&... args) |
template<typename T, typename... Args> | |
fl::enable_if<!fl::is_array< T >::value, unique_ptr< T > >::type | make_unique (Args &&... args) |
template<typename T> | |
fl::enable_if< fl::is_array< T >::value, unique_ptr< T > >::type | make_unique (fl::size_t size) |
void * | Malloc (fl::size size) |
template<typename Iterator> | |
Iterator | max_element (Iterator first, Iterator last) |
template<typename Iterator, typename Compare> | |
Iterator | max_element (Iterator first, Iterator last, Compare comp) |
void * | memcopy (void *dst, const void *src, fl::size num) |
template<typename T> | |
void * | memfill (T *ptr, int value, fl::size num) |
void * | memfill (void *ptr, int value, fl::size num) |
template<typename Iterator> | |
Iterator | min_element (Iterator first, Iterator last) |
template<typename Iterator, typename Compare> | |
Iterator | min_element (Iterator first, Iterator last, Compare comp) |
template<typename T> | |
constexpr remove_reference< T >::type && | move (T &&t) noexcept |
static u32 | MurmurHash3_x86_32 (const void *key, fl::size len, u32 seed=0) |
CRGB & | napplyGamma_video (CRGB &rgb, float gamma) |
CRGB & | napplyGamma_video (CRGB &rgb, float gammaR, float gammaG, float gammaB) |
void | napplyGamma_video (CRGB *rgbarray, fl::u16 count, float gamma) |
void | napplyGamma_video (CRGB *rgbarray, fl::u16 count, float gammaR, float gammaG, float gammaB) |
CHSV & | nblend (CHSV &existing, const CHSV &overlay, fract8 amountOfOverlay, TGradientDirectionCode directionCode) |
void | nblend (CHSV *existing, const CHSV *overlay, fl::u16 count, fract8 amountOfOverlay, TGradientDirectionCode directionCode) |
CRGB & | nblend (CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay) |
void | nblend (CRGB *existing, const CRGB *overlay, fl::u16 count, fract8 amountOfOverlay) |
void | nblendPaletteTowardPalette (CRGBPalette16 ¤t, CRGBPalette16 &target, fl::u8 maxChanges) |
template<typename T, typename... Args> | |
Ptr< T > | NewPtr (Args... args) |
template<typename T, typename... Args> | |
Ptr< T > | NewPtrNoTracking (Args... args) |
template<typename T> | |
Ptr< T > | NewPtrNoTracking (T &obj) |
void | nscale8 (CRGB *leds, fl::u16 num_leds, fl::u8 scale) |
void | nscale8_video (CRGB *leds, fl::u16 num_leds, fl::u8 scale) |
template<typename T, fl::size N> | |
bool | operator!= (const array< T, N > &lhs, const array< T, N > &rhs) |
template<typename T1, typename T2, typename U1, typename U2> | |
bool | operator!= (const pair< T1, T2 > &lhs, const pair< U1, U2 > &rhs) |
template<typename T, typename Y> | |
bool | operator!= (const shared_ptr< T > &lhs, const shared_ptr< Y > &rhs) noexcept |
template<typename T> | |
bool | operator!= (const shared_ptr< T > &lhs, fl::nullptr_t) noexcept |
template<typename T, typename Deleter> | |
bool | operator!= (const unique_ptr< T, Deleter > &ptr, fl::nullptr_t) noexcept |
template<typename T1, typename Deleter1, typename T2, typename Deleter2> | |
bool | operator!= (const unique_ptr< T1, Deleter1 > &lhs, const unique_ptr< T2, Deleter2 > &rhs) |
template<typename T> | |
bool | operator!= (fl::nullptr_t, const shared_ptr< T > &rhs) noexcept |
template<typename T, typename Deleter> | |
bool | operator!= (fl::nullptr_t, const unique_ptr< T, Deleter > &ptr) noexcept |
string | operator+ (const char *lhs, const string &rhs) |
template<typename T> | |
string | operator+ (const char *lhs, const T &rhs) |
string | operator+ (const string &lhs, const char *rhs) |
string | operator+ (const string &lhs, const string &rhs) |
template<typename T> | |
string | operator+ (const string &lhs, const T &rhs) |
template<typename T> | |
string | operator+ (const T &lhs, const char *rhs) |
template<typename T> | |
string | operator+ (const T &lhs, const string &rhs) |
template<typename T1, typename T2, typename U1, typename U2> | |
bool | operator< (const pair< T1, T2 > &lhs, const pair< U1, U2 > &rhs) |
template<typename T, typename Y> | |
bool | operator< (const shared_ptr< T > &lhs, const shared_ptr< Y > &rhs) noexcept |
ostream & | operator<< (ostream &os, const endl_t &) |
template<typename T1, typename T2, typename U1, typename U2> | |
bool | operator<= (const pair< T1, T2 > &lhs, const pair< U1, U2 > &rhs) |
template<typename T, typename Y> | |
bool | operator<= (const shared_ptr< T > &lhs, const shared_ptr< Y > &rhs) noexcept |
template<typename T, fl::size N> | |
bool | operator== (const array< T, N > &lhs, const array< T, N > &rhs) |
template<typename T1, typename T2, typename U1, typename U2> | |
bool | operator== (const pair< T1, T2 > &lhs, const pair< U1, U2 > &rhs) |
template<typename T, typename Y> | |
bool | operator== (const shared_ptr< T > &lhs, const shared_ptr< Y > &rhs) noexcept |
template<typename T> | |
bool | operator== (const shared_ptr< T > &lhs, fl::nullptr_t) noexcept |
template<typename T, typename Deleter> | |
bool | operator== (const unique_ptr< T, Deleter > &ptr, fl::nullptr_t) noexcept |
template<typename T1, typename Deleter1, typename T2, typename Deleter2> | |
bool | operator== (const unique_ptr< T1, Deleter1 > &lhs, const unique_ptr< T2, Deleter2 > &rhs) |
template<typename T> | |
bool | operator== (fl::nullptr_t, const shared_ptr< T > &rhs) noexcept |
template<typename T, typename Deleter> | |
bool | operator== (fl::nullptr_t, const unique_ptr< T, Deleter > &ptr) noexcept |
template<typename T1, typename T2, typename U1, typename U2> | |
bool | operator> (const pair< T1, T2 > &lhs, const pair< U1, U2 > &rhs) |
template<typename T, typename Y> | |
bool | operator> (const shared_ptr< T > &lhs, const shared_ptr< Y > &rhs) noexcept |
template<typename T1, typename T2, typename U1, typename U2> | |
bool | operator>= (const pair< T1, T2 > &lhs, const pair< U1, U2 > &rhs) |
template<typename T, typename Y> | |
bool | operator>= (const shared_ptr< T > &lhs, const shared_ptr< Y > &rhs) noexcept |
template<typename Iterator> | |
void | pop_heap (Iterator first, Iterator last) |
template<typename Iterator, typename Compare> | |
void | pop_heap (Iterator first, Iterator last, Compare comp) |
void | print (const char *str) |
template<typename... Args> | |
void | printf (const char *format, const Args &... args) |
Printf-like formatting function that prints directly to the platform output. | |
void | println (const char *str) |
void * | PSRamAllocate (fl::size size, bool zero) |
void | PSRamDeallocate (void *ptr) |
template<typename T> | |
uptr | ptr_to_int (T *ptr) noexcept |
template<typename Iterator> | |
void | push_heap (Iterator first, Iterator last) |
template<typename Iterator, typename Compare> | |
void | push_heap (Iterator first, Iterator last, Compare comp) |
int | read () |
template<typename T, typename Y> | |
shared_ptr< T > | reinterpret_pointer_cast (const shared_ptr< Y > &other) noexcept |
template<typename Iterator, typename T> | |
Iterator | remove (Iterator first, Iterator last, const T &value) |
template<typename Iterator, typename UnaryPredicate> | |
Iterator | remove_if (Iterator first, Iterator last, UnaryPredicate pred) |
template<typename Iterator> | |
void | reverse (Iterator first, Iterator last) |
FASTLED_FORCE_INLINE void | rgb_2_rgbw (RGBW_MODE mode, uint16_t w_color_temperature, uint8_t r, uint8_t g, uint8_t b, uint8_t r_scale, uint8_t g_scale, uint8_t b_scale, uint8_t *out_r, uint8_t *out_g, uint8_t *out_b, uint8_t *out_w) |
Converts RGB to RGBW using one of the functions. | |
template<RGBW_MODE MODE> | |
FASTLED_FORCE_INLINE void | rgb_2_rgbw (uint16_t w_color_temperature, uint8_t r, uint8_t g, uint8_t b, uint8_t r_scale, uint8_t g_scale, uint8_t b_scale, uint8_t *out_r, uint8_t *out_g, uint8_t *out_b, uint8_t *out_w) |
void | rgb_2_rgbw_exact (uint16_t w_color_temperature, uint8_t r, uint8_t g, uint8_t b, uint8_t r_scale, uint8_t g_scale, uint8_t b_scale, uint8_t *out_r, uint8_t *out_g, uint8_t *out_b, uint8_t *out_w) |
Converts RGB to RGBW using a color transfer method from saturated color channels to white. | |
void | rgb_2_rgbw_max_brightness (uint16_t w_color_temperature, uint8_t r, uint8_t g, uint8_t b, uint8_t r_scale, uint8_t g_scale, uint8_t b_scale, uint8_t *out_r, uint8_t *out_g, uint8_t *out_b, uint8_t *out_w) |
The minimum brigthness of the RGB channels is used to set the W channel. | |
void | rgb_2_rgbw_null_white_pixel (uint16_t w_color_temperature, uint8_t r, uint8_t g, uint8_t b, uint8_t r_scale, uint8_t g_scale, uint8_t b_scale, uint8_t *out_r, uint8_t *out_g, uint8_t *out_b, uint8_t *out_w) |
Converts RGB to RGBW with the W channel set to black, always. | |
void | rgb_2_rgbw_user_function (uint16_t w_color_temperature, uint8_t r, uint8_t g, uint8_t b, uint8_t r_scale, uint8_t g_scale, uint8_t b_scale, uint8_t *out_r, uint8_t *out_g, uint8_t *out_b, uint8_t *out_w) |
void | rgb_2_rgbw_white_boosted (uint16_t w_color_temperature, uint8_t r, uint8_t g, uint8_t b, uint8_t r_scale, uint8_t g_scale, uint8_t b_scale, uint8_t *out_r, uint8_t *out_g, uint8_t *out_b, uint8_t *out_w) |
Converts RGB to RGBW with a boosted white channel. | |
static HSV16 | RGBtoHSV16 (const CRGB &rgb) |
void | rgbw_partial_reorder (EOrderW w_placement, uint8_t b0, uint8_t b1, uint8_t b2, uint8_t w, uint8_t *out_b0, uint8_t *out_b1, uint8_t *out_b2, uint8_t *out_b3) |
static u16 | scale8_to_16_accurate (u8 x) |
fl::string | serializeValue (const JsonValue &value) |
void | set_rgb_2_rgbw_function (rgb_2_rgbw_function func) |
void | SetPSRamAllocator (void *(*alloc)(fl::size), void(*free)(void *)) |
template<typename Iterator> | |
void | shuffle (Iterator first, Iterator last) |
template<typename Iterator> | |
void | shuffle (Iterator first, Iterator last, fl_random &rng) |
template<typename Iterator, typename RandomGenerator> | |
void | shuffle (Iterator first, Iterator last, RandomGenerator &g) |
template<typename Iterator, typename Compare> | |
void | sift_down (Iterator first, Iterator last, Iterator start, Compare comp) |
static FASTLED_FORCE_INLINE i16 | sin16lut (u16 angle) |
static FASTLED_FORCE_INLINE i32 | sin32 (u32 angle) |
template<typename... Args> | |
int | snprintf (char *buffer, fl::size size, const char *format, const Args &... args) |
Snprintf-like formatting function that writes to a buffer. | |
template<typename Iterator> | |
void | sort (Iterator first, Iterator last) |
template<typename Iterator, typename Compare> | |
void | sort (Iterator first, Iterator last, Compare comp) |
Tile2x2_u8 | splat (vec2f xy) |
"Splat" as in "splat pixel rendering" takes a pixel value in float x,y coordinates and "splats" it into a 2x2 tile of pixel values. | |
template<fl::size N, typename... Args> | |
int | sprintf (char(&buffer)[N], const char *format, const Args &... args) |
Sprintf-like formatting function that writes to a buffer. | |
template<typename Iterator> | |
void | stable_sort (Iterator first, Iterator last) |
template<typename Iterator, typename Compare> | |
void | stable_sort (Iterator first, Iterator last, Compare comp) |
template<typename T, typename Y> | |
shared_ptr< T > | static_pointer_cast (const shared_ptr< Y > &other) noexcept |
template<typename T, fl::size N> | |
void | swap (array< T, N > &lhs, array< T, N > &rhs) noexcept(noexcept(lhs.swap(rhs))) |
template<typename T1, typename T2> | |
void | swap (pair< T1, T2 > &lhs, pair< T1, T2 > &rhs) noexcept |
template<typename T, typename Container> | |
void | swap (queue< T, Container > &lhs, queue< T, Container > &rhs) |
Swap two queues. | |
template<typename T> | |
void | swap (shared_ptr< T > &lhs, shared_ptr< T > &rhs) noexcept |
template<typename T> | |
void | swap (T &a, T &b) |
template<typename T, typename Deleter> | |
void | swap (unique_ptr< T, Deleter > &lhs, unique_ptr< T, Deleter > &rhs) noexcept |
template<typename T> | |
void | swap (weak_ptr< T > &lhs, weak_ptr< T > &rhs) noexcept |
template<typename T> | |
void | swap_by_copy (T &a, T &b) |
fl::u32 | time () |
Universal millisecond timer - returns milliseconds since system startup. | |
u16 | time_alpha16 (u32 now, u32 start, u32 end) |
u8 | time_alpha8 (u32 now, u32 start, u32 end) |
float | time_alphaf (u32 now, u32 start, u32 end) |
string | to_string (float value, int precision) |
template<typename T> | |
string | to_string (T value) |
static u8 | to_uint8 (float f) |
template<typename GridVisitor> | |
void | traverseGridSegment (const vec2f &start, const vec2f &end, GridVisitor &visitor) |
Traverse a grid segment by selecting the cells that are crossed. | |
template<typename GridVisitor> | |
void | traverseGridSegment16 (const vec2f &start, const vec2f &end, GridVisitor &visitor) |
Traverse a grid segment using fixed-point 8.8 arithmetic. | |
template<typename GridVisitor> | |
void | traverseGridSegment32 (const vec2f &start, const vec2f &end, GridVisitor &visitor) |
template<typename GridVisitor> | |
void | traverseGridSegmentFloat (const vec2f &start, const vec2f &end, GridVisitor &visitor) |
Traverse a grid segment using floating point arithmetic. | |
void | upscale (const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, const fl::XYMap &xyMap) |
void | upscaleArbitrary (const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, const fl::XYMap &xyMap) |
Performs bilinear interpolation for upscaling an image. | |
void | upscaleArbitraryFloat (const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, const XYMap &xyMap) |
void | upscaleFloat (const CRGB *input, CRGB *output, u8 inputWidth, u8 inputHeight, const XYMap &xyMap) |
u8 | upscaleFloat (u8 v00, u8 v10, u8 v01, u8 v11, float dx, float dy) |
void | UpscalePalette (const class CHSVPalette16 &srcpal16, class CHSVPalette256 &destpal256) |
void | UpscalePalette (const class CHSVPalette16 &srcpal16, class CHSVPalette32 &destpal32) |
void | UpscalePalette (const class CHSVPalette32 &srcpal32, class CHSVPalette256 &destpal256) |
void | UpscalePalette (const class CRGBPalette16 &srcpal16, class CRGBPalette256 &destpal256) |
void | UpscalePalette (const class CRGBPalette16 &srcpal16, class CRGBPalette32 &destpal32) |
void | UpscalePalette (const class CRGBPalette32 &srcpal32, class CRGBPalette256 &destpal256) |
void | upscalePowerOf2 (const CRGB *input, CRGB *output, u8 inputWidth, u8 inputHeight, const fl::XYMap &xyMap) |
Performs bilinear interpolation for upscaling an image. | |
void | upscaleRectangular (const CRGB *input, CRGB *output, u16 inputWidth, u16 inputHeight, u16 outputWidth, u16 outputHeight) |
Optimized upscale for rectangular/line-by-line XY maps. | |
void | upscaleRectangularPowerOf2 (const CRGB *input, CRGB *output, u8 inputWidth, u8 inputHeight, u8 outputWidth, u8 outputHeight) |
Optimized upscale for rectangular/line-by-line XY maps (power-of-2 version). | |
i32 | worley_noise_2d_q15 (i32 x, i32 y) |
FASTLED_FORCE_INLINE u16 | x_linear (u16 x, u16 length) |
FASTLED_FORCE_INLINE u16 | x_reverse (u16 x, u16 length) |
fl::u16 | XY (fl::u16 x, fl::u16 y) |
fl::u16 | XY (fl::u8 x, fl::u8 y) |
FASTLED_FORCE_INLINE u16 | xy_line_by_line (u16 x, u16 y, u16 width, u16 height) |
FASTLED_FORCE_INLINE u16 | xy_serpentine (u16 x, u16 y, u16 width, u16 height) |
Variables | |
const TProgmemRGBPalette16 * | ActivePaletteList [] |
static const AnimartrixEntry | ANIMATION_TABLE [] |
const TProgmemRGBPalette16 | BlueWhite_p |
FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS istream | cin |
const i16 * | cosArray = &sinLut[64] |
ostream | cout |
const endl_t | endl |
const TProgmemRGBPalette16 | FairyLight_p |
rgb_2_rgbw_function | g_user_function = rgb_2_rgbw_exact |
const u16 | gamma_2_8 [256] |
const TProgmemRGBPalette16 | Holly_p |
const TProgmemRGBPalette16 | Ice_p |
void const fl::XYMap &xymap | instead |
constexpr nullopt_t | nullopt {} |
const TProgmemRGBPalette16 | RedGreenWhite_p |
const TProgmemRGBPalette16 | RedWhite_p |
const TProgmemRGBPalette16 | RetroC9_p |
const i16 * | sinArray = &sinLut[0] |
const i16 | sinLut [] |
const TProgmemRGBPalette16 | Snow_p |
Class Members | ||
---|---|---|
typedef T * | type T * |
struct fl::add_pointer< T & > |
struct fl::add_pointer< T && > |
struct fl::add_rvalue_reference |
struct fl::add_rvalue_reference< T & > |
struct fl::AnimartrixEntry |
Class Members | ||
---|---|---|
AnimartrixAnim | anim | |
void(FastLEDANIMartRIX::*)() | func | |
const char * | name |
struct fl::AudioConfig |
struct fl::AudioData |
class fl::BitsetFixed |
class fl::BitsetInlined |
struct fl::choose_by_rank |
struct fl::choose_by_size |
Class Members | ||
---|---|---|
typedef typename conditional<(sizeof(T) > sizeof(U)), T, typename conditional<(sizeof(U) > sizeof(T)), U, void >::type >::type | type |
struct fl::common_type |
Class Members | ||
---|---|---|
typedef typename type | type typename common_type_impl<T, U>::type |
struct fl::common_type_impl |
struct fl::common_type_impl< double, float > |
struct fl::common_type_impl< double, long double > |
struct fl::common_type_impl< double, T, typename enable_if<(is_integral< T >::value||is_floating_point< T >::value) &&!is_same< T, double >::value >::type > |
Class Members | ||
---|---|---|
typedef double | type | |
typedef double | type double |
struct fl::common_type_impl< float, double > |
struct fl::common_type_impl< float, long double > |
struct fl::common_type_impl< float, T, typename enable_if<(is_integral< T >::value||is_floating_point< T >::value) &&!is_same< T, float >::value >::type > |
Class Members | ||
---|---|---|
typedef float | type | |
typedef float | type float |
struct fl::common_type_impl< i8, u8, void > |
Class Members | ||
---|---|---|
typedef i8 | type |
struct fl::common_type_impl< long double, double > |
struct fl::common_type_impl< long double, float > |
struct fl::common_type_impl< T, double, typename enable_if<(is_integral< T >::value||is_floating_point< T >::value) &&!is_same< T, double >::value >::type > |
Class Members | ||
---|---|---|
typedef T | type | |
typedef double | type double |
struct fl::common_type_impl< T, float, typename enable_if<(is_integral< T >::value||is_floating_point< T >::value) &&!is_same< T, float >::value >::type > |
Class Members | ||
---|---|---|
typedef T | type | |
typedef float | type float |
struct fl::common_type_impl< T, T > |
struct fl::common_type_impl< T, U, typename enable_if< is_integral< T >::value &&is_integral< U >::value &&!is_same< T, U >::value &&!((is_same< T, i8 >::value &&is_same< U, u8 >::value)||(is_same< T, u8 >::value &&is_same< U, i8 >::value))>::type > |
Class Members | ||
---|---|---|
typedef T | type | |
typedef typename type | type typename integer_promotion_impl<T, U>::type |
struct fl::common_type_impl< u8, i8, void > |
Class Members | ||
---|---|---|
typedef u8 | type |
struct fl::conditional |
struct fl::conditional< false, T, F > |
struct fl::contains_type |
struct fl::Empty |
struct fl::enable_if |
struct fl::enable_if< true, T > |
struct fl::endl_t |
class fl::function |
struct fl::LuminovaParams |
struct fl::max_align |
struct fl::max_size |
struct fl::nullopt_t |
struct fl::pair_element |
struct fl::pair_element< 0, T1, T2 > |
struct fl::pair_element< 1, T1, T2 > |
union fl::Pixel.__unnamed0__ |
Class Members | ||
---|---|---|
struct Pixel.__unnamed0__.__unnamed0__ | __unnamed__ | |
uint8_t | raw[3] |
struct fl::remove_const |
struct fl::remove_const< const T > |
struct fl::remove_cv< const T > |
struct fl::remove_cv< const volatile T > |
struct fl::remove_cv< volatile T > |
struct fl::remove_extent |
struct fl::remove_extent< T[]> |
struct fl::remove_extent< T[N]> |
struct fl::remove_reference |
struct fl::remove_reference< T & > |
struct fl::remove_reference< T && > |
struct fl::swap_impl |
struct fl::tuple |
struct fl::tuple<> |
struct fl::tuple_element |
struct fl::tuple_element< 0, pair< T1, T2 > > |
struct fl::tuple_element< 0, tuple< Head, Tail... > > |
struct fl::tuple_element< 1, pair< T1, T2 > > |
struct fl::tuple_size |
typedef u16 fl::accum124 |
typedef u32 fl::accum1616 |
typedef u16 fl::accum88 |
using fl::add_pointer_t = typename add_pointer<T>::type |
Definition at line 173 of file type_traits.h.
typedef void(* fl::advanceDataFunction) (void *pixel_controller) |
Definition at line 85 of file pixel_iterator.h.
using fl::allocator_inlined_psram = allocator_inlined<T, N, fl::allocator_psram<T>> |
Definition at line 764 of file allocator.h.
using fl::allocator_inlined_slab = allocator_inlined<T, N, fl::allocator_slab<T>> |
Definition at line 772 of file allocator.h.
using fl::allocator_inlined_slab_psram = allocator_inlined<T, N, fl::allocator_slab<T, SLAB_SIZE>> |
Definition at line 768 of file allocator.h.
using fl::alpha16 |
Definition at line 21 of file transform.h.
using fl::atomic = AtomicFake<T> |
using fl::atomic_bool = atomic<bool> |
using fl::atomic_i32 = atomic<fl::i32> |
using fl::atomic_int = atomic<int> |
using fl::atomic_u32 = atomic<fl::u32> |
using fl::atomic_uint = atomic<unsigned int> |
using fl::common_type_t = typename common_type<T, U>::type |
Definition at line 647 of file type_traits.h.
using fl::conditional_t = typename conditional<B, T, F>::type |
Definition at line 108 of file type_traits.h.
typedef fl::i64 fl::cycle_t |
using fl::decay_t = typename decay<T>::type |
Definition at line 257 of file type_traits.h.
using fl::DefaultLess = less<T> |
typedef deque<double> fl::deque_double |
typedef deque<float> fl::deque_float |
typedef deque<int> fl::deque_int |
using fl::enable_if_t = typename enable_if<Condition, T>::type |
Definition at line 59 of file type_traits.h.
using fl::equal_to = EqualTo<T> |
Definition at line 712 of file hash_map.h.
using fl::false_type = integral_constant<bool, false> |
Definition at line 30 of file type_traits.h.
using fl::FetchCallback = fl::function<void(const response&)> |
using fl::FixedSet = VectorSetFixed<Key, N> |
using fl::fl_map = MapRedBlackTree<Key, T, Compare, fl::allocator_slab<char>> |
typedef u16 fl::fract16 |
typedef u32 fl::fract32 |
typedef u8 fl::fract8 |
Fixed-Point Fractional Types.
Types for storing fractional data.
Example: if a fract8 has the value "64", that should be interpreted as 64/256ths, or one-quarter.
accumXY types should be interpreted as X bits of integer, and Y bits of fraction.
E.g., accum88 has 8 bits of int, 8 bits of fraction ANSI: unsigned short _Fract. Range is 0 to 0.99609375 in steps of 0.00390625.
Should be interpreted as unsigned 256ths.
typedef void(* fl::getHdScaleFunction) (void *pixel_controller, uint8_t *c0, uint8_t *c1, uint8_t *c2, uint8_t *brightness) |
Definition at line 89 of file pixel_iterator.h.
typedef uint8_t(* fl::globalBrightness) (void *pixel_controller) |
Definition at line 88 of file pixel_iterator.h.
typedef bool(* fl::hasFunction) (void *pixel_controller, int n) |
Definition at line 87 of file pixel_iterator.h.
using fl::hash_map = HashMap<Key, T, Hash, KeyEqual> |
Definition at line 716 of file hash_map.h.
using fl::hash_set = HashSet<Key, Hash, KeyEqual> |
Definition at line 30 of file hash_set.h.
using fl::intrusive_ptr = fl::Ptr<T> |
using fl::is_derived = enable_if_t<is_base_of<Base, Derived>::value> |
Definition at line 663 of file type_traits.h.
using fl::JsonArray = fl::vector<fl::shared_ptr<JsonValue>> |
using fl::JsonObject = fl::HashMap<fl::string, fl::shared_ptr<JsonValue>> |
typedef void(* fl::loadAndScale_WS2816_HDFunction) (void *pixel_controller, uint16_t *b0_out, uint16_t *b1_out, uint16_t *b2_out) |
Definition at line 83 of file pixel_iterator.h.
typedef void(* fl::loadAndScaleRGBFunction) (void *pixel_controller, uint8_t *r_out, uint8_t *g_out, uint8_t *b_out) |
Definition at line 79 of file pixel_iterator.h.
typedef void(* fl::loadAndScaleRGBWFunction) (void *pixel_controller, Rgbw rgbw, uint8_t *b0_out, uint8_t *b1_out, uint8_t *b2_out, uint8_t *b3_out) |
Definition at line 78 of file pixel_iterator.h.
typedef LUT<vec2<u16> > fl::LUTXY16 |
typedef LUT<vec2f> fl::LUTXYFLOAT |
typedef LUT<vec3f> fl::LUTXYZFLOAT |
typedef decltype(nullptr) fl::nullptr_t |
using fl::optional = Optional<T> |
Definition at line 14 of file optional.h.
using fl::pair_xy_float = vec2<float> |
Definition at line 342 of file geometry.h.
using fl::pair_xyz_float = vec3<float> |
Definition at line 338 of file geometry.h.
using fl::PromiseResult = result<T> |
Type alias for backwards compatibility.
Definition at line 185 of file promise_result.h.
typedef __PTRDIFF_TYPE__ fl::ptrdiff_t |
using fl::remove_cv_t = typename remove_cv<T>::type |
Definition at line 242 of file type_traits.h.
using fl::remove_reference_t = typename remove_reference<T>::type |
typedef void(* fl::rgb_2_rgbw_function) (uint16_t w_color_temperature, uint8_t r, uint8_t g, uint8_t b, uint8_t r_scale, uint8_t g_scale, uint8_t b_scale, uint8_t *out_r, uint8_t *out_g, uint8_t *out_b, uint8_t *out_w) |
typedef i32 fl::saccum114 |
typedef i32 fl::saccum1516 |
typedef i16 fl::saccum78 |
using fl::scoped_ptr = unique_ptr<T, Deleter> |
Definition at line 12 of file scoped_ptr.h.
using fl::set_inlined = fl::set<T, fl::allocator_inlined_slab<T, N>> |
typedef i16 fl::sfract15 |
typedef i32 fl::sfract31 |
typedef i8 fl::sfract7 |
typedef __SIZE_TYPE__ fl::size_t |
typedef int(* fl::sizeFunction) (void *pixel_controller) |
Definition at line 86 of file pixel_iterator.h.
using fl::sstream = StrStream |
typedef void(* fl::stepDitheringFunction) (void *pixel_controller) |
Definition at line 84 of file pixel_iterator.h.
using fl::Str = fl::string |
using fl::ThreadLocal = ThreadLocalFake<T> |
Definition at line 27 of file thread_local.h.
using fl::TracePoint = fl::tuple<const char*, int, uint32_t> |
using fl::true_type = integral_constant<bool, true> |
Definition at line 29 of file type_traits.h.
using fl::unordered_map = HashMap<Key, T, Hash, KeyEqual> |
Definition at line 720 of file hash_map.h.
Definition at line 333 of file geometry.h.
using fl::vec2i16 = vec2<i16> |
Definition at line 335 of file geometry.h.
using fl::vec2u8 = vec2<fl::u8> |
Definition at line 334 of file geometry.h.
Definition at line 185 of file geometry.h.
using fl::vector = HeapVector<T, Allocator> |
using fl::vector_fixed = FixedVector<T, INLINED_SIZE> |
using fl::vector_inlined = InlinedVector<T, INLINED_SIZE> |
using fl::XYRaster = XYRasterU8Sparse |
anonymous enum |
Enumerator | |
---|---|
kRGBWDefaultColorTemp |
enum fl::AnimartrixAnim |
Definition at line 27 of file animartrix.hpp.
enum fl::ButtonStrategy |
Enumerator | |
---|---|
kHighLowFloating | |
kPullUp |
Definition at line 13 of file button.h.
enum fl::DrawMode |
Enumerator | |
---|---|
DRAW_MODE_OVERWRITE | |
DRAW_MODE_BLEND_BY_MAX_BRIGHTNESS |
Definition at line 5 of file draw_mode.h.
enum fl::EaseType |
Enumerator | |
---|---|
EASE_NONE | |
EASE_IN_QUAD | |
EASE_OUT_QUAD | |
EASE_IN_OUT_QUAD | |
EASE_IN_CUBIC | |
EASE_OUT_CUBIC | |
EASE_IN_OUT_CUBIC | |
EASE_IN_SINE | |
EASE_OUT_SINE | |
EASE_IN_OUT_SINE |
Definition at line 21 of file ease.h.
enum fl::EOrder |
RGB color channel orderings, used when instantiating controllers to determine what order the controller should send data out in.
The default ordering is RGB. Within this enum, the red channel is 0, the green channel is 1, and the blue chanel is 2.
Enumerator | |
---|---|
RGB | Red, Green, Blue (0012) |
RBG | Red, Blue, Green (0021) |
GRB | Green, Red, Blue (0102) |
GBR | Green, Blue, Red (0120) |
BRG | Blue, Red, Green (0201) |
BGR | Blue, Green, Red (0210) |
enum fl::EOrderW |
Enumerator | |
---|---|
kFiveBitGammaCorrectionMode_Null | |
kFiveBitGammaCorrectionMode_BitShift |
Definition at line 15 of file five_bit_hd_gamma.h.
enum fl::HSVHue |
Pre-defined hue values for CHSV objects.
Enumerator | |
---|---|
HUE_RED | Red (0°) |
HUE_ORANGE | Orange (45°) |
HUE_YELLOW | Yellow (90°) |
HUE_GREEN | Green (135°) |
HUE_AQUA | Aqua (180°) |
HUE_BLUE | Blue (225°) |
HUE_PURPLE | Purple (270°) |
HUE_PINK | Pink (315°) |
Definition at line 96 of file hsv.h.
enum fl::InsertResult |
Enumerator | |
---|---|
kInserted | |
kExists | |
kMaxSize |
Definition at line 10 of file insert_result.h.
|
strong |
enum fl::RGBW_MODE |
Enumerator | |
---|---|
kRGBWInvalid | |
kRGBWNullWhitePixel | |
kRGBWExactColors | |
kRGBWBoostedWhite | |
kRGBWMaxBrightness | |
kRGBWUserFunction |
enum fl::SuperSample |
Enumerator | |
---|---|
SUPER_SAMPLE_NONE | |
SUPER_SAMPLE_2X | |
SUPER_SAMPLE_4X | |
SUPER_SAMPLE_8X |
Definition at line 4 of file supersample.h.
|
strong |
Enumerator | |
---|---|
kEveryMs | |
kAtFramerate | |
kBeforeFrame | |
kAfterFrame |
Hue direction for calculating fill gradients.
Since "hue" is a value around a color wheel, there are always two directions to sweep from one hue to another.
Definition at line 34 of file colorutils_misc.h.
enum fl::U8EasingFunction |
shared_ptr< T > fl::allocate_shared | ( | const A & | alloc, |
Args &&... | args ) |
Definition at line 386 of file shared_ptr.h.
void fl::AnimartrixLoop | ( | Animartrix & | self, |
fl::u32 | now ) |
Definition at line 162 of file animartrix.hpp.
Definition at line 1069 of file colorutils.cpp.
References applyGamma_video().
Definition at line 1077 of file colorutils.cpp.
References applyGamma_video().
Definition at line 1057 of file colorutils.cpp.
References brightness().
Referenced by applyGamma_video(), applyGamma_video(), napplyGamma_video(), napplyGamma_video(), napplyGamma_video(), and napplyGamma_video().
size_t fl::async_active_tasks | ( | ) |
Get the number of active async tasks across all systems.
Definition at line 82 of file async.cpp.
References fl::AsyncManager::instance(), and fl::AsyncManager::total_active_tasks().
bool fl::async_has_tasks | ( | ) |
Check if any async systems have active tasks.
Definition at line 86 of file async.cpp.
References fl::AsyncManager::has_active_tasks(), and fl::AsyncManager::instance().
void fl::async_run | ( | ) |
Run all registered async tasks once.
This function updates all registered async runners (fetch, timers, etc.) and is automatically called during:
Definition at line 63 of file async.cpp.
References fl::AsyncManager::instance(), fl::Scheduler::instance(), fl::Scheduler::update(), and fl::AsyncManager::update_all().
Referenced by async_yield(), fetch_update(), loop(), and fl::FetchEngineListener::onEndFrame().
void fl::async_yield | ( | ) |
Platform-specific async yield function.
This function pumps all async tasks and yields control appropriately for the platform:
This centralizes platform-specific async behavior instead of having #ifdef in generic code.
Definition at line 68 of file async.cpp.
References async_run().
Referenced by await_top_level().
int fl::available | ( | ) |
Definition at line 117 of file io.cpp.
Referenced by fl::istream_real::eof(), fl::istream_real::get(), fl::istream_real::getline(), fl::istream_real::operator>>(), fl::istream_real::peek(), fl::ByteStreamMemory::read(), fl::istream_real::readLine(), fl::istream_real::readToken(), and fl::istream_real::skipWhitespace().
fl::result< T > fl::await_top_level | ( | fl::promise< T > | promise | ) |
Synchronously wait for a promise to complete (ONLY safe in top-level contexts)
T | The type of value the promise resolves to (automatically deduced) |
promise | The promise to wait for |
This function blocks until the promise is either resolved or rejected, then returns a PromiseResult that can be checked with ok() for success/failure. While waiting, it continuously calls async_yield() to pump async tasks and yield appropriately.
SAFETY WARNING: This function should ONLY be called from top-level contexts like Arduino loop() function. Never call this from:
The "_top_level" suffix emphasizes this safety requirement.
Type Deduction: The template parameter T is automatically deduced from the promise parameter, so you don't need to specify it explicitly.
Definition at line 175 of file async.h.
References fl::ThreadLocalFake< T >::access(), async_yield(), fl::promise< T >::error(), fl::promise< T >::is_completed(), fl::promise< T >::is_resolved(), fl::promise< T >::update(), fl::promise< T >::valid(), and fl::promise< T >::value().
Referenced by test_await_approach(), and test_json_await().
|
constexpr |
Definition at line 27 of file range_access.h.
|
constexpr |
Definition at line 21 of file range_access.h.
|
constexprnoexcept |
Definition at line 9 of file range_access.h.
Referenced by fl::UIDropdownImpl::UIDropdownImpl(), fl::AudioSampleImpl::assign(), LedRopeTCL::Draw(), LedRopeTCL::DrawSequentialRepeat(), FASTLED_SMART_PTR(), fl::InlinedVector< T, INLINED_SIZE >::find_if(), fl::InlinedMemoryBlock< T, N >::memory(), and fl::InlinedMemoryBlock< T, N >::memory().
Definition at line 151 of file upscale.cpp.
Referenced by upscaleArbitrary(), and upscaleRectangular().
Definition at line 222 of file upscale.cpp.
Referenced by upscalePowerOf2(), and upscaleRectangularPowerOf2().
|
noexcept |
Definition at line 39 of file bit_cast.h.
References fl::is_bitcast_compatible< T >::value.
Referenced by bit_cast_ptr(), bit_cast_ptr(), int_to_ptr(), fl::Hash< float >::operator()(), fl::HashMap< Key, T, Hash, KeyEqual, INLINED_COUNT >::iterator::operator->(), ptr_to_int(), fl::WeakPtr< T >::ptr_value(), and reinterpret_pointer_cast().
|
noexcept |
Definition at line 59 of file bit_cast.h.
References bit_cast().
|
noexcept |
Definition at line 54 of file bit_cast.h.
References bit_cast().
Referenced by fl::PSRamAllocator< T >::Alloc(), fl::string::append(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::copy_fn(), fl::SlabAllocator< T, SLAB_SIZE >::deallocate(), fl::SlabAllocator< T, SLAB_SIZE >::deallocateToSlab(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::destroy_fn(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::move_fn(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::ptr(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::ptr(), RGBWEmulatedController< CONTROLLER, RGB_ORDER >::showPixels(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::visit_fn(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::visit_fn_const(), fl::StrN< SIZE >::write(), and fl::StrN< SIZE >::write().
CHSV fl::blend | ( | const CHSV & | p1, |
const CHSV & | p2, | ||
fract8 | amountOfP2, | ||
TGradientDirectionCode | directionCode ) |
Definition at line 133 of file colorutils.cpp.
References nblend().
CHSV * fl::blend | ( | const CHSV * | src1, |
const CHSV * | src2, | ||
CHSV * | dest, | ||
fl::u16 | count, | ||
fract8 | amountOfsrc2, | ||
TGradientDirectionCode | directionCode ) |
Definition at line 140 of file colorutils.cpp.
References blend().
Definition at line 61 of file colorutils.cpp.
References nblend().
Referenced by blend(), blend(), ColorFromPalette(), ColorFromPalette(), ColorFromPalette(), ColorFromPalette(), ColorFromPalette(), ColorFromPalette(), ColorFromPaletteExtended(), ColorFromPaletteExtended(), ColorFromPaletteExtended(), draw(), fl::TwinkleFox::drawTwinkleFox(), drawTwinkles(), fl::LUT< u16 >::interp16(), fl::LUT< u16 >::interp8(), and MyColorFromPaletteExtended().
CRGB * fl::blend | ( | const CRGB * | src1, |
const CRGB * | src2, | ||
CRGB * | dest, | ||
fl::u16 | count, | ||
fract8 | amountOfsrc2 ) |
Definition at line 67 of file colorutils.cpp.
References blend().
Definition at line 55 of file blur.cpp.
References CRGB::Black, leds, and CRGB::nscale8().
One-dimensional blur filter.
Spreads light to 2 line neighbors.
Total light is NOT entirely conserved, so many repeated calls to 'blur' will also result in the light fading, eventually all the way to black; this is by design so that it can be used to (slowly) clear the LEDs to black.
leds | a pointer to the LED array to blur |
numLeds | the number of LEDs to blur |
blur_amount | the amount of blur to apply |
Legacy version of blur2d, which does not require an XYMap but instead implicitly binds to XY() function.
If you are hitting a linker error here, then use blur2d(..., const fl::XYMap& xymap) instead.
Definition at line 78 of file blur.cpp.
References blur2d(), fl::XYMap::constructWithUserFunction(), leds, and xy().
void fl::blur2d | ( | CRGB * | leds, |
fl::u8 | width, | ||
fl::u8 | height, | ||
fract8 | blur_amount, | ||
const fl::XYMap & | xymap ) |
Two-dimensional blur filter.
Spreads light to 8 XY neighbors.
Total light is NOT entirely conserved, so many repeated calls to 'blur' will also result in the light fading, eventually all the way to black; this is by design so that it can be used to (slowly) clear the LEDs to black.
leds | a pointer to the LED array to blur |
width | the width of the matrix |
height | the height of the matrix |
blur_amount | the amount of blur to apply |
Definition at line 72 of file blur.cpp.
References blurColumns(), blurRows(), leds, and xymap.
Referenced by blur2d(), fl::Blend2d::draw(), fl::Luminova::draw(), and loop().
void fl::blurColumns | ( | CRGB * | leds, |
fl::u8 | width, | ||
fl::u8 | height, | ||
fract8 | blur_amount, | ||
const fl::XYMap & | xymap ) |
Perform a blur1d() on every column of a rectangular matrix.
leds | a pointer to the LED array to blur |
width | the width of the matrix |
height | the height of the matrix |
blur_amount | the amount of blur to apply |
Definition at line 112 of file blur.cpp.
References CRGB::Black, leds, CRGB::nscale8(), and xyMap.
Referenced by blur2d().
void fl::blurRows | ( | CRGB * | leds, |
fl::u8 | width, | ||
fl::u8 | height, | ||
fract8 | blur_amount, | ||
const fl::XYMap & | xymap ) |
Perform a blur1d() on every row of a rectangular matrix.
leds | a pointer to the LED array to blur |
width | the width of the matrix |
height | the height of the matrix |
blur_amount | the amount of blur to apply |
Definition at line 84 of file blur.cpp.
References CRGB::Black, leds, CRGB::nscale8(), and xyMap.
Referenced by blur2d().
|
constexpr |
Definition at line 57 of file corkscrew.h.
References calculateCorkscrewWidth(), and ceil_constexpr().
|
constexpr |
Definition at line 53 of file corkscrew.h.
References ceil_constexpr().
Referenced by calculateCorkscrewHeight().
|
inline |
Definition at line 39 of file math.h.
References ceil().
Referenced by fl::anonymous_namespace{corkscrew.cpp}::calculateDimensions(), ceil(), and fl::Luminova::plotSoftDot().
|
constexpr |
Definition at line 72 of file math.h.
Referenced by calculateCorkscrewHeight(), and calculateCorkscrewWidth().
istream_real & fl::cin_real | ( | ) |
Definition at line 129 of file istream.cpp.
FASTLED_FORCE_INLINE T fl::clamp | ( | T | value, |
T | min, | ||
T | max ) |
Definition at line 10 of file clamp.h.
References FASTLED_FORCE_INLINE.
Referenced by fl::XYPath::calculateSteps(), drawRadialSpectrum(), drawSpectrumBars(), drawWaveform(), FL_DISABLE_WARNING(), fl::wave_detail::float_to_fixed(), fl::MatrixSlice< T >::getLocalCoord(), loop(), fl::XYMap::mapToIndex(), fl::Luminova::plotSoftDot(), fl::WaveSimulation1D::setf(), fl::WaveSimulation2D::setf(), fl::HashMap< Key, T, Hash, KeyEqual >::setLoadFactor(), showGenerative(), and updateAutoGain().
|
inline |
|
inline |
Definition at line 13 of file clear.h.
References CRGB::Black.
Referenced by fl::InlinedVector< T, INLINED_SIZE >::assign(), fl::InlinedVector< T, INLINED_SIZE >::assign(), clearLeds(), loop(), and fl::InlinedVector< T, INLINED_SIZE >::operator=().
|
inline |
Definition at line 27 of file clear.h.
References fl::Grid< T >::clear().
|
inline |
|
inline |
Definition at line 22 of file clear.h.
References CRGB::Black, and leds.
CHSV fl::ColorFromPalette | ( | const CHSVPalette16 & | pal, |
fl::u8 | index, | ||
fl::u8 | brightness, | ||
TBlendType | blendType ) |
Definition at line 772 of file colorutils.cpp.
References blend(), brightness(), cleanup_R1(), lsrX4(), map8(), scale8(), scale8_LEAVING_R1_DIRTY(), and scale8_video().
CHSV fl::ColorFromPalette | ( | const CHSVPalette256 & | pal, |
fl::u8 | index, | ||
fl::u8 | brightness, | ||
TBlendType | ) |
Definition at line 952 of file colorutils.cpp.
References brightness(), and scale8_video().
CHSV fl::ColorFromPalette | ( | const CHSVPalette32 & | pal, |
fl::u8 | index, | ||
fl::u8 | brightness, | ||
TBlendType | blendType ) |
Definition at line 859 of file colorutils.cpp.
References blend(), brightness(), cleanup_R1(), map8(), scale8(), scale8_LEAVING_R1_DIRTY(), and scale8_video().
CRGB fl::ColorFromPalette | ( | const CRGBPalette16 & | pal, |
fl::u8 | index, | ||
fl::u8 | brightness, | ||
TBlendType | blendType ) |
Definition at line 300 of file colorutils.cpp.
References blend(), brightness(), cleanup_R1(), lsrX4(), map8(), and scale8_LEAVING_R1_DIRTY().
Referenced by fl::DemoReel100::bpm(), computeOneTwinkle(), fl::TwinkleFox::computeOneTwinkle(), fl::Fire2012::draw(), fillFrameBufferFire(), fillFrameBufferNoise(), Fire2023(), loop(), fl::NoisePalette::mapNoiseToLEDsUsingPalette(), fl::Pacifica::pacifica_one_layer(), UpscalePalette(), UpscalePalette(), UpscalePalette(), and UpscalePalette().
CRGB fl::ColorFromPalette | ( | const CRGBPalette256 & | pal, |
fl::u8 | index, | ||
fl::u8 | brightness, | ||
TBlendType | ) |
Definition at line 705 of file colorutils.cpp.
References brightness(), cleanup_R1(), and scale8_video_LEAVING_R1_DIRTY().
CRGB fl::ColorFromPalette | ( | const CRGBPalette32 & | pal, |
fl::u8 | index, | ||
fl::u8 | brightness, | ||
TBlendType | blendType ) |
Definition at line 521 of file colorutils.cpp.
References blend(), brightness(), cleanup_R1(), map8(), and scale8_LEAVING_R1_DIRTY().
CRGB fl::ColorFromPalette | ( | const TProgmemRGBPalette16 & | pal, |
fl::u8 | index, | ||
fl::u8 | brightness, | ||
TBlendType | blendType ) |
Definition at line 438 of file colorutils.cpp.
References blend(), brightness(), cleanup_R1(), FL_PGM_READ_DWORD_NEAR, lsrX4(), map8(), and scale8_LEAVING_R1_DIRTY().
CRGB fl::ColorFromPalette | ( | const TProgmemRGBPalette32 & | pal, |
fl::u8 | index, | ||
fl::u8 | brightness, | ||
TBlendType | blendType ) |
Definition at line 616 of file colorutils.cpp.
References blend(), brightness(), cleanup_R1(), FL_PGM_READ_DWORD_NEAR, map8(), and scale8_LEAVING_R1_DIRTY().
CRGB fl::ColorFromPaletteExtended | ( | const CRGBPalette16 & | pal, |
fl::u16 | index, | ||
fl::u8 | brightness, | ||
TBlendType | blendType ) |
Definition at line 390 of file colorutils.cpp.
References blend(), brightness(), cleanup_R1(), nscale8x3(), offset(), and scale8_LEAVING_R1_DIRTY().
CRGB fl::ColorFromPaletteExtended | ( | const CRGBPalette256 & | pal, |
fl::u16 | index, | ||
fl::u8 | brightness, | ||
TBlendType | blendType ) |
Definition at line 724 of file colorutils.cpp.
References blend(), brightness(), cleanup_R1(), nscale8x3(), offset(), and scale8_LEAVING_R1_DIRTY().
CRGB fl::ColorFromPaletteExtended | ( | const CRGBPalette32 & | pal, |
fl::u16 | index, | ||
fl::u8 | brightness, | ||
TBlendType | blendType ) |
Definition at line 253 of file colorutils.cpp.
References blend(), brightness(), cleanup_R1(), nscale8x3_video(), offset(), and scale8_LEAVING_R1_DIRTY().
|
noexcept |
Definition at line 458 of file shared_ptr.h.
|
static |
|
static |
Definition at line 45 of file sin32.h.
References cosArray, and FASTLED_FORCE_INLINE.
Referenced by easeInOutSine16(), and easeInSine16().
|
noexcept |
fl_random & fl::default_random | ( | ) |
Global default random number generator instance.
This provides a convenient global instance that can be used when you don't need to manage multiple separate random generators.
Definition at line 8 of file random.cpp.
References fl::ThreadLocalFake< T >::access().
Referenced by shuffle().
Definition at line 154 of file downscale.cpp.
References downscaleArbitrary(), downscaleHalf(), fl::XYMap::getHeight(), fl::XYMap::getType(), fl::XYMap::getWidth(), and fl::XYMap::kLineByLine.
Referenced by CRGB::downscale(), and loop().
void fl::downscaleArbitrary | ( | const CRGB * | src, |
const XYMap & | srcXY, | ||
CRGB * | dst, | ||
const XYMap & | dstXY ) |
Definition at line 82 of file downscale.cpp.
References fl::XYMap::getHeight(), fl::XYMap::getWidth(), fl::XYMap::mapToIndex(), MAX, and MIN.
Referenced by downscale().
Definition at line 47 of file downscale.cpp.
References fl::XYMap::getHeight(), fl::XYMap::getWidth(), fl::XYMap::mapToIndex(), x, and y.
Definition at line 18 of file downscale.cpp.
Referenced by downscale(), and loop().
void fl::drawSquare | ( | void * | , |
uint16_t | , | ||
uint16_t | , | ||
int | , | ||
int | , | ||
uint32_t | , | ||
uint32_t | ) |
|
inline |
Definition at line 142 of file ease.h.
References EASE_IN_CUBIC, EASE_IN_OUT_CUBIC, EASE_IN_OUT_QUAD, EASE_IN_OUT_SINE, EASE_IN_QUAD, EASE_IN_SINE, EASE_NONE, EASE_OUT_CUBIC, EASE_OUT_QUAD, EASE_OUT_SINE, easeInCubic16(), easeInOutCubic16(), easeInOutQuad16(), easeInOutSine16(), easeInQuad16(), easeInSine16(), easeOutCubic16(), easeOutQuad16(), and easeOutSine16().
|
inline |
Definition at line 126 of file ease.h.
References EASE_IN_CUBIC, EASE_IN_OUT_CUBIC, EASE_IN_OUT_QUAD, EASE_IN_OUT_SINE, EASE_IN_QUAD, EASE_IN_SINE, EASE_NONE, EASE_OUT_CUBIC, EASE_OUT_QUAD, EASE_OUT_SINE, easeInCubic16(), easeInOutCubic16(), easeInOutQuad16(), easeInOutSine16(), easeInQuad16(), easeInSine16(), easeOutCubic16(), easeOutQuad16(), and easeOutSine16().
Referenced by fl::HSV16::colorBoost(), and loop().
Definition at line 218 of file ease.h.
References EASE_IN_CUBIC, EASE_IN_OUT_CUBIC, EASE_IN_OUT_QUAD, EASE_IN_OUT_SINE, EASE_IN_QUAD, EASE_IN_SINE, EASE_NONE, EASE_OUT_CUBIC, EASE_OUT_QUAD, EASE_OUT_SINE, easeInCubic8(), easeInOutCubic8(), easeInOutQuad8(), easeInOutSine8(), easeInQuad8(), easeInSine8(), easeOutCubic8(), easeOutQuad8(), and easeOutSine8().
Definition at line 202 of file ease.h.
References EASE_IN_CUBIC, EASE_IN_OUT_CUBIC, EASE_IN_OUT_QUAD, EASE_IN_OUT_SINE, EASE_IN_QUAD, EASE_IN_SINE, EASE_NONE, EASE_OUT_CUBIC, EASE_OUT_QUAD, EASE_OUT_SINE, easeInCubic8(), easeInOutCubic8(), easeInOutQuad8(), easeInOutSine8(), easeInQuad8(), easeInSine8(), easeOutCubic8(), easeOutQuad8(), and easeOutSine8().
Referenced by loop().
u16 fl::easeInCubic16 | ( | u16 | i | ) |
16-bit cubic ease-in function Takes an input value 0-65535 and returns an eased value 0-65535
Definition at line 239 of file ease.cpp.
References MAX.
Referenced by ease16(), and ease16().
8-bit cubic ease-in function Takes an input value 0-255 and returns an eased value 0-255 More pronounced acceleration than quadratic
Definition at line 107 of file ease.cpp.
References MAX.
Referenced by ease8(), and ease8().
u16 fl::easeInOutCubic16 | ( | u16 | x | ) |
16-bit cubic ease-in/ease-out function Takes an input value 0-65535 and returns an eased value 0-65535
Definition at line 206 of file ease.cpp.
Referenced by ease16(), and ease16().
8-bit cubic ease-in/ease-out function Takes an input value 0-255 and returns an eased value 0-255 More pronounced easing curve than quadratic
Definition at line 75 of file ease.cpp.
References MAX.
Referenced by ease8(), and ease8().
u16 fl::easeInOutQuad16 | ( | u16 | x | ) |
16-bit quadratic ease-in/ease-out function Takes an input value 0-65535 and returns an eased value 0-65535
Definition at line 186 of file ease.cpp.
Referenced by ease16(), and ease16().
8-bit quadratic ease-in/ease-out function Takes an input value 0-255 and returns an eased value 0-255 The curve starts slow, accelerates in the middle, then slows down again
Definition at line 55 of file ease.cpp.
Referenced by ease8(), and ease8().
u16 fl::easeInOutSine16 | ( | u16 | i | ) |
16-bit sine ease-in/ease-out function Takes an input value 0-65535 and returns an eased value 0-65535
Definition at line 317 of file ease.cpp.
References cos32().
Referenced by ease16(), ease16(), and easeInOutSine8().
8-bit sine ease-in/ease-out function Takes an input value 0-255 and returns an eased value 0-255 Smooth sinusoidal acceleration and deceleration
Definition at line 170 of file ease.cpp.
References easeInOutSine16(), map16_to_8(), and map8_to_16().
Referenced by ease8(), and ease8().
u16 fl::easeInQuad16 | ( | u16 | i | ) |
16-bit quadratic ease-in function Takes an input value 0-65535 and returns an eased value 0-65535
Definition at line 180 of file ease.cpp.
References scale16().
Referenced by ease16(), and ease16().
8-bit quadratic ease-in function Takes an input value 0-255 and returns an eased value 0-255 The curve starts slow and accelerates (ease-in only)
Definition at line 49 of file ease.cpp.
References scale8().
Referenced by ease8(), and ease8().
u16 fl::easeInSine16 | ( | u16 | i | ) |
16-bit sine ease-in function Takes an input value 0-65535 and returns an eased value 0-65535
Definition at line 265 of file ease.cpp.
References cos32().
Referenced by ease16(), and ease16().
8-bit sine ease-in function Takes an input value 0-255 and returns an eased value 0-255 Smooth sinusoidal acceleration
Definition at line 133 of file ease.cpp.
Referenced by ease8(), and ease8().
u16 fl::easeOutCubic16 | ( | u16 | i | ) |
16-bit cubic ease-out function Takes an input value 0-65535 and returns an eased value 0-65535
Definition at line 252 of file ease.cpp.
References MAX.
Referenced by ease16(), and ease16().
8-bit cubic ease-out function Takes an input value 0-255 and returns an eased value 0-255 More pronounced deceleration than quadratic
Definition at line 120 of file ease.cpp.
References MAX.
Referenced by ease8(), and ease8().
u16 fl::easeOutQuad16 | ( | u16 | i | ) |
16-bit quadratic ease-out function Takes an input value 0-65535 and returns an eased value 0-65535
Definition at line 228 of file ease.cpp.
References MAX.
Referenced by ease16(), and ease16().
8-bit quadratic ease-out function Takes an input value 0-255 and returns an eased value 0-255 The curve starts fast and decelerates (ease-out only)
Definition at line 98 of file ease.cpp.
References MAX.
Referenced by ease8(), and ease8().
u16 fl::easeOutSine16 | ( | u16 | i | ) |
16-bit sine ease-out function Takes an input value 0-65535 and returns an eased value 0-65535
Definition at line 296 of file ease.cpp.
References sin32().
Referenced by ease16(), ease16(), and easeOutSine8().
8-bit sine ease-out function Takes an input value 0-255 and returns an eased value 0-255 Smooth sinusoidal deceleration
Definition at line 161 of file ease.cpp.
References easeOutSine16(), map16_to_8(), and map8_to_16().
Referenced by ease8(), and ease8().
|
constexpr |
Definition at line 39 of file range_access.h.
|
constexpr |
Definition at line 33 of file range_access.h.
|
constexprnoexcept |
Definition at line 15 of file range_access.h.
Referenced by fl::UIDropdownImpl::UIDropdownImpl(), fl::AudioSampleImpl::assign(), LedRopeTCL::Draw(), LedRopeTCL::DrawSequentialRepeat(), FASTLED_SMART_PTR(), fl::InlinedVector< T, INLINED_SIZE >::find_if(), fl::detail::heap_sort(), fl::detail::sift_down(), time_alpha16(), time_alpha8(), time_alphaf(), traverseGridSegment(), traverseGridSegment16(), traverseGridSegment32(), and traverseGridSegmentFloat().
bool fl::equal | ( | Iterator1 | first1, |
Iterator1 | last1, | ||
Iterator2 | first2 ) |
Definition at line 95 of file algorithm.h.
Referenced by fl::line_xy< T >::distance_to_line_with_point(), equal_container(), equal_container(), fl::WeakPtr< T >::operator!=(), and fl::FFT_Args::operator==().
bool fl::equal | ( | Iterator1 | first1, |
Iterator1 | last1, | ||
Iterator2 | first2, | ||
BinaryPredicate | pred ) |
Definition at line 107 of file algorithm.h.
bool fl::equal | ( | Iterator1 | first1, |
Iterator1 | last1, | ||
Iterator2 | first2, | ||
Iterator2 | last2 ) |
Definition at line 119 of file algorithm.h.
bool fl::equal | ( | Iterator1 | first1, |
Iterator1 | last1, | ||
Iterator2 | first2, | ||
Iterator2 | last2, | ||
BinaryPredicate | pred ) |
Definition at line 131 of file algorithm.h.
bool fl::equal_container | ( | const Container1 & | c1, |
const Container2 & | c2 ) |
Definition at line 143 of file algorithm.h.
References equal().
bool fl::equal_container | ( | const Container1 & | c1, |
const Container2 & | c2, | ||
BinaryPredicate | pred ) |
Definition at line 153 of file algorithm.h.
References equal().
fl::promise< response > fl::execute_fetch_request | ( | const fl::string & | url, |
const fetch_options & | request ) |
Internal helper to execute a fetch request and return a promise.
Definition at line 72 of file fetch.cpp.
References FL_WARN, fl::promise< T >::resolve(), and fl::response::set_body().
Referenced by fetch_delete(), fetch_get(), fetch_head(), fetch_http_options(), fetch_patch(), fetch_post(), fetch_put(), and fetch_request().
|
inline |
Definition at line 47 of file math.h.
Referenced by exp(), and MaxFadeTracker::operator()().
Definition at line 166 of file colorutils.cpp.
References leds, and nscale8().
Definition at line 154 of file colorutils.cpp.
References leds, and nscale8_video().
Definition at line 158 of file colorutils.cpp.
References leds, and nscale8_video().
Definition at line 162 of file colorutils.cpp.
References leds, and nscale8().
Referenced by fl::DemoReel100::confetti(), fl::Luminova::draw(), fl::DemoReel100::juggle(), and fl::DemoReel100::sinelon().
void fl::fadeToColorBy | ( | void * | , |
uint16_t | , | ||
uint32_t | , | ||
uint8_t | ) |
Definition at line 176 of file colorutils.cpp.
References leds, scale8(), and scale8_LEAVING_R1_DIRTY().
|
inlinestaticnoexcept |
Definition at line 82 of file hash.h.
References x.
Referenced by hash_pair(), fl::FastHash< Key >::operator()(), fl::FastHash< vec2< T > >::operator()(), fl::Hash< bool >::operator()(), fl::Hash< fl::u8 >::operator()(), fl::Hash< float >::operator()(), fl::Hash< i16 >::operator()(), fl::Hash< i32 >::operator()(), fl::Hash< i8 >::operator()(), fl::Hash< T * >::operator()(), fl::Hash< u16 >::operator()(), and fl::Hash< u32 >::operator()().
|
inlinestaticnoexcept |
Definition at line 99 of file hash.h.
References hash_pair(), and x.
|
inline |
Definition at line 20 of file dbg.h.
fl::FASTLED_SMART_PTR | ( | Animartrix | ) |
fl::FASTLED_SMART_PTR | ( | ArchimedeanSpiralPath | ) |
fl::FASTLED_SMART_PTR | ( | AudioSampleImpl | ) |
fl::FASTLED_SMART_PTR | ( | Blend2d | ) |
fl::FASTLED_SMART_PTR | ( | ByteStream | ) |
fl::FASTLED_SMART_PTR | ( | ByteStreamMemory | ) |
fl::FASTLED_SMART_PTR | ( | CatmullRomParams | ) |
fl::FASTLED_SMART_PTR | ( | CatmullRomPath | ) |
fl::FASTLED_SMART_PTR | ( | CirclePath | ) |
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 | ( | GielisCurvePath | ) |
fl::FASTLED_SMART_PTR | ( | HeartPath | ) |
fl::FASTLED_SMART_PTR | ( | LinePath | ) |
fl::FASTLED_SMART_PTR | ( | LinePathParams | ) |
fl::FASTLED_SMART_PTR | ( | Luminova | ) |
fl::FASTLED_SMART_PTR | ( | NoisePalette | ) |
fl::FASTLED_SMART_PTR | ( | NoiseWave | ) |
fl::FASTLED_SMART_PTR | ( | Pacifica | ) |
fl::FASTLED_SMART_PTR | ( | PhyllotaxisPath | ) |
fl::FASTLED_SMART_PTR | ( | PixelStream | ) |
Definition at line 20 of file video_impl.h.
References begin(), draw(), end(), forward(), leds, and timeScale().
fl::FASTLED_SMART_PTR | ( | PointPath | ) |
fl::FASTLED_SMART_PTR | ( | Pride2015 | ) |
fl::FASTLED_SMART_PTR | ( | RedSquare | ) |
fl::FASTLED_SMART_PTR | ( | RosePath | ) |
fl::FASTLED_SMART_PTR | ( | RosePathParams | ) |
fl::FASTLED_SMART_PTR | ( | ScaleUp | ) |
fl::FASTLED_SMART_PTR | ( | StringHolder | ) |
fl::FASTLED_SMART_PTR | ( | TimeFunction | ) |
fl::FASTLED_SMART_PTR | ( | TimeWarp | ) |
fl::FASTLED_SMART_PTR | ( | TransformFloatImpl | ) |
fl::FASTLED_SMART_PTR | ( | TwinkleFox | ) |
fl::FASTLED_SMART_PTR | ( | VideoFxWrapper | ) |
fl::FASTLED_SMART_PTR | ( | VideoImpl | ) |
fl::FASTLED_SMART_PTR | ( | WaveCrgbGradientMap | ) |
fl::FASTLED_SMART_PTR | ( | WaveCrgbMap | ) |
fl::FASTLED_SMART_PTR | ( | WaveCrgbMapDefault | ) |
fl::FASTLED_SMART_PTR | ( | WaveFx | ) |
fl::FASTLED_SMART_PTR | ( | XYPath | ) |
fl::FASTLED_SMART_PTR | ( | XYPathFunction | ) |
fl::FASTLED_SMART_PTR | ( | XYPathGenerator | ) |
fl::FASTLED_SMART_PTR | ( | XYPathRenderer | ) |
fl::FASTLED_SMART_PTR_NO_FWD | ( | LUT16 | ) |
fl::FASTLED_SMART_PTR_NO_FWD | ( | LUTXY16 | ) |
fl::FASTLED_SMART_PTR_NO_FWD | ( | LUTXYFLOAT | ) |
fl::FASTLED_SMART_PTR_NO_FWD | ( | LUTXYZFLOAT | ) |
fl::FASTLED_UI_DEFINE_OPERATORS | ( | UIButton | ) |
fl::FASTLED_UI_DEFINE_OPERATORS | ( | UICheckbox | ) |
fl::FASTLED_UI_DEFINE_OPERATORS | ( | UIDropdown | ) |
fl::FASTLED_UI_DEFINE_OPERATORS | ( | UINumberField | ) |
fl::FASTLED_UI_DEFINE_OPERATORS | ( | UISlider | ) |
|
inline |
Make an HTTP GET request with URL string literal (cross-platform)
url | The URL to fetch (C-string) |
callback | Function to call with the response |
Definition at line 286 of file fetch.h.
References fetch().
void fl::fetch | ( | const fl::string & | url, |
const FetchCallback & | callback ) |
Make an HTTP GET request (cross-platform, backward compatible)
url | The URL to fetch |
callback | Function to call with the response |
On WASM/browser platforms: Uses native JavaScript fetch() API On Arduino/embedded platforms: Immediately calls callback with error response
Definition at line 63 of file fetch.cpp.
References fl::response::set_text().
Referenced by fetch().
fl::size fl::fetch_active_requests | ( | ) |
Get number of active requests.
Definition at line 313 of file fetch.cpp.
References fl::FetchManager::active_requests(), and fl::FetchManager::instance().
fl::promise< response > fl::fetch_delete | ( | const fl::string & | url, |
const fetch_options & | request ) |
HTTP DELETE request.
Definition at line 231 of file fetch.cpp.
References fl::fetch_options::body(), execute_fetch_request(), fl::fetch_options::header(), fl::fetch_options::options(), and fl::fetch_options::timeout().
fl::promise< response > fl::fetch_get | ( | const fl::string & | url, |
const fetch_options & | request ) |
HTTP GET request.
Definition at line 180 of file fetch.cpp.
References fl::fetch_options::body(), execute_fetch_request(), fl::fetch_options::header(), fl::fetch_options::options(), and fl::fetch_options::timeout().
Referenced by test_await_approach(), test_json_await(), test_json_response(), and test_promise_approach().
fl::promise< response > fl::fetch_head | ( | const fl::string & | url, |
const fetch_options & | request ) |
HTTP HEAD request.
Definition at line 248 of file fetch.cpp.
References fl::fetch_options::body(), execute_fetch_request(), fl::fetch_options::header(), fl::fetch_options::options(), and fl::fetch_options::timeout().
fl::promise< response > fl::fetch_http_options | ( | const fl::string & | url, |
const fetch_options & | request ) |
HTTP OPTIONS request.
Definition at line 265 of file fetch.cpp.
References fl::fetch_options::body(), execute_fetch_request(), fl::fetch_options::header(), fl::fetch_options::options(), and fl::fetch_options::timeout().
fl::promise< response > fl::fetch_patch | ( | const fl::string & | url, |
const fetch_options & | request ) |
HTTP PATCH request.
Definition at line 282 of file fetch.cpp.
References fl::fetch_options::body(), execute_fetch_request(), fl::fetch_options::header(), fl::fetch_options::options(), and fl::fetch_options::timeout().
fl::promise< response > fl::fetch_post | ( | const fl::string & | url, |
const fetch_options & | request ) |
HTTP POST request.
Definition at line 197 of file fetch.cpp.
References fl::fetch_options::body(), execute_fetch_request(), fl::fetch_options::header(), fl::fetch_options::options(), and fl::fetch_options::timeout().
fl::promise< response > fl::fetch_put | ( | const fl::string & | url, |
const fetch_options & | request ) |
HTTP PUT request.
Definition at line 214 of file fetch.cpp.
References fl::fetch_options::body(), execute_fetch_request(), fl::fetch_options::header(), fl::fetch_options::options(), and fl::fetch_options::timeout().
fl::promise< response > fl::fetch_request | ( | const fl::string & | url, |
const RequestOptions & | options ) |
Generic request with options (like fetch(url, options))
Definition at line 299 of file fetch.cpp.
References execute_fetch_request().
void fl::fetch_update | ( | ) |
Legacy manual update for fetch promises (use fl::async_run() for new code)
Definition at line 307 of file fetch.cpp.
References async_run().
void fl::fill | ( | Iterator | first, |
Iterator | last, | ||
const T & | value ) |
Definition at line 164 of file algorithm.h.
void fl::fill_gradient | ( | T * | targetArray, |
u16 | numLeds, | ||
const CHSV & | c1, | ||
const CHSV & | c2, | ||
const CHSV & | c3, | ||
const CHSV & | c4, | ||
TGradientDirectionCode | directionCode = SHORTEST_HUES ) |
Fill a range of LEDs with a smooth HSV gradient between four HSV colors.
targetArray | a pointer to the color array to fill |
numLeds | the number of LEDs to fill |
c1 | the starting color in the gradient |
c2 | the first middle color for the gradient |
c3 | the second middle color for the gradient |
c4 | the end color for the gradient |
directionCode | the direction to travel around the color wheel |
Definition at line 233 of file fill.h.
References fill_gradient(), and SHORTEST_HUES.
void fl::fill_gradient | ( | T * | targetArray, |
u16 | numLeds, | ||
const CHSV & | c1, | ||
const CHSV & | c2, | ||
const CHSV & | c3, | ||
TGradientDirectionCode | directionCode = SHORTEST_HUES ) |
Fill a range of LEDs with a smooth HSV gradient between three HSV colors.
targetArray | a pointer to the color array to fill |
numLeds | the number of LEDs to fill |
c1 | the starting color in the gradient |
c2 | the middle color for the gradient |
c3 | the end color for the gradient |
directionCode | the direction to travel around the color wheel |
Definition at line 214 of file fill.h.
References fill_gradient(), and SHORTEST_HUES.
void fl::fill_gradient | ( | T * | targetArray, |
u16 | numLeds, | ||
const CHSV & | c1, | ||
const CHSV & | c2, | ||
TGradientDirectionCode | directionCode = SHORTEST_HUES ) |
Fill a range of LEDs with a smooth HSV gradient between two HSV colors.
targetArray | a pointer to the color array to fill |
numLeds | the number of LEDs to fill |
c1 | the starting color in the gradient |
c2 | the end color for the gradient |
directionCode | the direction to travel around the color wheel |
Definition at line 198 of file fill.h.
References fill_gradient(), and SHORTEST_HUES.
void fl::fill_gradient | ( | T * | targetArray, |
u16 | startpos, | ||
CHSV | startcolor, | ||
u16 | endpos, | ||
CHSV | endcolor, | ||
TGradientDirectionCode | directionCode = SHORTEST_HUES ) |
Fill a range of LEDs with a smooth HSV gradient between two HSV colors.
This function can write the gradient colors either:
In the case of writing into a CRGB array, the gradient is computed in HSV space, and then HSV values are converted to RGB as they're written into the CRGB array.
targetArray | a pointer to the color array to fill |
startpos | the starting position in the array |
startcolor | the starting color for the gradient |
endpos | the ending position in the array |
endcolor | the end color for the gradient |
directionCode | the direction to travel around the color wheel |
Definition at line 87 of file fill.h.
References BACKWARD_HUES, FORWARD_HUES, LONGEST_HUES, saccum87, SHORTEST_HUES, and t.
Referenced by fill_gradient(), fill_gradient(), and fill_gradient().
Fill a range of LEDs with a smooth RGB gradient between two RGB colors.
leds | a pointer to the LED array to fill |
numLeds | the number of LEDs to fill |
c1 | the starting color in the gradient |
c2 | the end color for the gradient |
Definition at line 149 of file fill.cpp.
References fill_gradient_RGB(), and leds.
void fl::fill_gradient_RGB | ( | CRGB * | leds, |
u16 | numLeds, | ||
const CRGB & | c1, | ||
const CRGB & | c2, | ||
const CRGB & | c3 ) |
Fill a range of LEDs with a smooth RGB gradient between three RGB colors.
leds | a pointer to the LED array to fill |
numLeds | the number of LEDs to fill |
c1 | the starting color in the gradient |
c2 | the middle color for the gradient |
c3 | the end color for the gradient |
Definition at line 155 of file fill.cpp.
References fill_gradient_RGB(), and leds.
void fl::fill_gradient_RGB | ( | CRGB * | leds, |
u16 | numLeds, | ||
const CRGB & | c1, | ||
const CRGB & | c2, | ||
const CRGB & | c3, | ||
const CRGB & | c4 ) |
Fill a range of LEDs with a smooth RGB gradient between four RGB colors.
leds | a pointer to the LED array to fill |
numLeds | the number of LEDs to fill |
c1 | the starting color in the gradient |
c2 | the first middle color for the gradient |
c3 | the second middle color for the gradient |
c4 | the end color for the gradient |
Definition at line 163 of file fill.cpp.
References fill_gradient_RGB(), and leds.
void fl::fill_gradient_RGB | ( | CRGB * | leds, |
u16 | startpos, | ||
CRGB | startcolor, | ||
u16 | endpos, | ||
CRGB | endcolor ) |
Fill a range of LEDs with a smooth RGB gradient between two RGB colors.
Unlike HSV, there is no "color wheel" in RGB space, and therefore there's only one "direction" for the gradient to go. This means there's no TGradientDirectionCode parameter for direction.
leds | a pointer to the LED array to fill |
startpos | the starting position in the array |
startcolor | the starting color for the gradient |
endpos | the ending position in the array |
endcolor | the end color for the gradient |
Definition at line 107 of file fill.cpp.
References leds, saccum87, and t.
Referenced by fill_gradient_RGB(), fill_gradient_RGB(), and fill_gradient_RGB().
void fl::fill_rainbow | ( | struct CHSV * | targetArray, |
int | numToFill, | ||
fl::u8 | initialhue, | ||
fl::u8 | deltahue = 5 ) |
Fill a range of LEDs with a rainbow of colors.
The colors making up the rainbow are at full saturation and full value (brightness).
targetArray | a pointer to the LED array to fill |
numToFill | the number of LEDs to fill in the array |
initialhue | the starting hue for the rainbow |
deltahue | how many hue values to advance for each LED |
Definition at line 41 of file fill.cpp.
void fl::fill_rainbow | ( | struct CRGB * | targetArray, |
int | numToFill, | ||
fl::u8 | initialhue, | ||
fl::u8 | deltahue = 5 ) |
Fill a range of LEDs with a rainbow of colors.
The colors making up the rainbow are at full saturation and full value (brightness).
targetArray | a pointer to the LED array to fill |
numToFill | the number of LEDs to fill in the array |
initialhue | the starting hue for the rainbow |
deltahue | how many hue values to advance for each LED |
Definition at line 29 of file fill.cpp.
Referenced by fl::DemoReel100::rainbow().
void fl::fill_rainbow_circular | ( | struct CHSV * | targetArray, |
int | numToFill, | ||
fl::u8 | initialhue, | ||
bool | reversed = false ) |
Fill a range of LEDs with a rainbow of colors, so that the hues are continuous between the end of the strip and the beginning.
The colors making up the rainbow are at full saturation and full value (brightness).
targetArray | a pointer to the LED array to fill |
numToFill | the number of LEDs to fill in the array |
initialhue | the starting hue for the rainbow |
reversed | whether to progress through the rainbow hues backwards |
Definition at line 80 of file fill.cpp.
void fl::fill_rainbow_circular | ( | struct CRGB * | targetArray, |
int | numToFill, | ||
fl::u8 | initialhue, | ||
bool | reversed = false ) |
Fill a range of LEDs with a rainbow of colors, so that the hues are continuous between the end of the strip and the beginning.
The colors making up the rainbow are at full saturation and full value (brightness).
targetArray | a pointer to the LED array to fill |
numToFill | the number of LEDs to fill in the array |
initialhue | the starting hue for the rainbow |
reversed | whether to progress through the rainbow hues backwards |
Definition at line 53 of file fill.cpp.
Fill a range of LEDs with a solid color.
targetArray | a pointer to the LED array to fill |
numToFill | the number of LEDs to fill in the array |
color | the color to fill with |
Definition at line 9 of file fill.cpp.
Referenced by fl::Pacifica::draw(), setup(), fl::NoisePalette::SetupBlackAndWhiteStripedPalette(), test_await_approach(), test_json_await(), test_json_response(), and test_promise_approach().
Iterator fl::find | ( | Iterator | first, |
Iterator | last, | ||
const T & | value ) |
Definition at line 172 of file algorithm.h.
Referenced by fl::AsyncManager::register_runner(), and fl::AsyncManager::unregister_runner().
Iterator fl::find_if | ( | Iterator | first, |
Iterator | last, | ||
UnaryPredicate | pred ) |
Definition at line 183 of file algorithm.h.
Iterator fl::find_if_not | ( | Iterator | first, |
Iterator | last, | ||
UnaryPredicate | pred ) |
Definition at line 194 of file algorithm.h.
void fl::five_bit_bitshift | ( | u16 | r16, |
u16 | g16, | ||
u16 | b16, | ||
fl::u8 | brightness, | ||
CRGB * | out, | ||
fl::u8 * | out_power_5bit ) |
References brightness().
Referenced by internal_builtin_five_bit_hd_gamma_bitshift().
|
inline |
Definition at line 125 of file five_bit_hd_gamma.h.
References brightness(), fl_max(), scale, and scale16by8().
|
inline |
Definition at line 57 of file five_bit_hd_gamma.h.
References internal_builtin_five_bit_hd_gamma_bitshift().
Referenced by PixelController< RGB_ORDER, LANES, MASK >::loadAndScale_APA102_HD().
|
inline |
Definition at line 85 of file five_bit_hd_gamma.h.
References gamma16().
Referenced by internal_builtin_five_bit_hd_gamma_bitshift().
|
inline |
Definition at line 11 of file math_macros.h.
Referenced by FL_DISABLE_WARNING().
FL_DISABLE_WARNING_PUSH fl::FL_DISABLE_WARNING | ( | sign- | compare | ) |
FL_DISABLE_WARNING_PUSH fl::FL_DISABLE_WARNING | ( | unused- | function | ) |
Definition at line 42 of file json.cpp.
References fl_abs().
|
inline |
Definition at line 29 of file math_macros.h.
Referenced by five_bit_bitshift(), hsv2rgb_fullspectrum(), and RGBtoHSV16().
|
inline |
Definition at line 25 of file math_macros.h.
Referenced by hsv2rgb_fullspectrum(), and RGBtoHSV16().
|
inline |
Definition at line 32 of file math.h.
References floor().
Referenced by floor(), fl::JsonValue::parse(), and traverseGridSegmentFloat().
|
constexprnoexcept |
Definition at line 219 of file type_traits.h.
References t, and fl::is_lvalue_reference< T >::value.
|
constexprnoexcept |
Definition at line 213 of file type_traits.h.
References t.
Referenced by fl::RedBlackTree< T, Compare, Allocator >::Node::Node(), fl::pair< const Key, T >::pair(), fl::tuple< Head, Tail... >::tuple(), fl::shared_ptr< T >::allocate_shared, fl::allocator< U >::construct(), fl::allocator_inlined< U, N, typename BaseAllocator::template rebind< U >::other >::construct(), fl::allocator_psram< U >::construct(), fl::allocator_slab< T, SLAB_SIZE >::construct(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::construct(), fl::MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > >::emplace(), fl::RedBlackTree< value_type, PairCompare, Allocator >::emplace(), fl::set< T, fl::allocator_inlined_slab< T, N > >::emplace(), fl::SetRedBlackTree< Key, fl::less< Key >, Allocator >::emplace(), fl::SortedHeapMap< fl::u32, FramePtr, Less >::emplace(), fl::unordered_set< Key >::emplace(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::emplace(), fl::VectorSet< Key, Allocator >::emplace(), fl::VectorSetFixed< Key, N >::emplace(), fl::HeapVector< DrawItem >::emplace_back(), FASTLED_SMART_PTR(), fl::RedBlackTree< value_type, PairCompare, Allocator >::insertImpl(), invoke(), invoke(), invoke(), make_intrusive(), make_pair(), fl::shared_ptr< T >::make_shared, make_shared_ptr(), fl::shared_ptr< T >::make_shared_with_deleter, make_tuple(), make_unique(), fl::less< void >::operator()(), and fl::JsonValue::operator=().
void fl::Free | ( | void * | ptr | ) |
Definition at line 125 of file allocator.cpp.
Referenced by fl::allocator< U >::deallocate().
|
inline |
|
noexcept |
|
noexcept |
Definition at line 157 of file pair.h.
References fl::is_same< T, U >::value.
|
noexcept |
|
noexcept |
Definition at line 170 of file pair.h.
References move(), and fl::is_same< T, U >::value.
|
noexcept |
Definition at line 113 of file pair.h.
Referenced by fl::Corkscrew::clear(), fl::Corkscrew::data(), fl::result< T >::error(), get(), get(), get(), fl::anonymous_namespace{task.cpp}::make_trace_label(), fl::Corkscrew::pixelCount(), fl::Corkscrew::rawData(), fl::result< T >::value(), fl::result< T >::value(), and fl::Ptr< T >::weakRefNoCreate().
|
noexcept |
Definition at line 144 of file pair.h.
References fl::is_same< T, U >::value.
JsonObject & fl::get_empty_json_object | ( | ) |
Definition at line 75 of file json.cpp.
References fl::ThreadLocalFake< T >::access().
JsonValue & fl::get_null_value | ( | ) |
Definition at line 70 of file json.cpp.
References fl::ThreadLocalFake< T >::access().
Referenced by fl::JsonValue::const_iterator::KeyValue::KeyValue(), fl::JsonValue::iterator::KeyValue::KeyValue(), and fl::JsonValue::operator[]().
fl::string fl::getAnimartrixName | ( | int | animation | ) |
Definition at line 249 of file animartrix.hpp.
References ANIMATION_TABLE, and NUM_ANIMATIONS.
|
inlinestaticnoexcept |
Definition at line 92 of file hash.h.
References fast_hash32().
Referenced by fast_hash64(), and fl::FastHash< vec2< T > >::operator()().
Definition at line 200 of file colorutils.cpp.
References scale8_video().
Definition at line 121 of file hsv16.cpp.
References fl::HSV16::h, map16_to_8(), map32_to_16(), fl::HSV16::s, fl::HSV16::v, and x.
Referenced by fl::HSV16::ToRGB().
|
noexcept |
Definition at line 70 of file bit_cast.h.
References bit_cast().
Referenced by CLEDController::beginShowLeds().
|
inline |
Definition at line 92 of file five_bit_hd_gamma.h.
References five_bit_bitshift(), five_bit_hd_gamma_function(), and scale16by8().
Referenced by five_bit_hd_gamma_bitshift().
auto fl::invoke | ( | F && | f, |
Args &&... | args ) -> enable_if_t<!is_member_function_pointer<typename remove_reference<F>::type>::value && !detail::is_member_data_pointer<typename remove_reference<F>::type>::value, decltype(fl::forward<F>(f)(fl::forward<Args>(args)...))> |
Definition at line 89 of file functional.h.
References args, and forward().
auto fl::invoke | ( | F && | f, |
T1 && | t1 ) -> enable_if_t<detail::is_member_data_pointer<typename remove_reference<F>::type>::value && !detail::use_pointer_syntax<T1>::value, decltype(fl::forward<T1>(t1).*f)> |
Definition at line 69 of file functional.h.
References forward(), and fl::integral_constant< bool, false >::value.
auto fl::invoke | ( | F && | f, |
T1 && | t1, | ||
Args &&... | args ) -> enable_if_t<is_member_function_pointer<typename remove_reference<F>::type>::value && !detail::use_pointer_syntax<T1>::value, decltype((fl::forward<T1>(t1).*f)(fl::forward<Args>(args)...))> |
Definition at line 49 of file functional.h.
References args, forward(), and fl::integral_constant< bool, false >::value.
fl::vector< float > fl::jsonArrayToFloatVector | ( | const fl::Json & | jsonArray | ) |
Definition at line 23 of file screenmap.cpp.
References fl::Json::begin_array(), fl::Json::end_array(), FL_WARN, fl::Json::has_value(), and fl::Json::is_array().
Referenced by fl::ScreenMap::ParseJson().
Helper function to divide a number by 16, aka four logical shift right (LSR)'s.
On avr-gcc, "u8 >> 4" generates a loop, which is big, and slow. merely forcing it to be four /=2's causes avr-gcc to emit a SWAP instruction followed by an AND 0x0F, which is faster, and smaller.
Definition at line 241 of file colorutils.cpp.
Referenced by ColorFromPalette(), ColorFromPalette(), and ColorFromPalette().
result< T > fl::make_error | ( | const char * | message | ) |
Helper function to create an error result from C-string.
T | The value type |
message | The error message |
Definition at line 178 of file promise_result.h.
Helper function to create an error result.
T | The value type |
error | The error |
Definition at line 151 of file promise_result.h.
result< T > fl::make_error | ( | const fl::string & | message | ) |
Helper function to create an error result from string.
T | The value type |
message | The error message |
Definition at line 169 of file promise_result.h.
Helper function to create an error result (move)
T | The value type |
error | The error (moved) |
Definition at line 160 of file promise_result.h.
References move().
intrusive_ptr< T > fl::make_intrusive | ( | Args &&... | args | ) |
Definition at line 29 of file memory.h.
References args, forward(), and fl::PtrTraits< T >::New().
optional< T > fl::make_optional | ( | const T & | value | ) |
Definition at line 120 of file optional.h.
Referenced by fl::response::get_header().
optional< T > fl::make_optional | ( | T && | value | ) |
Definition at line 125 of file optional.h.
References move().
pair< typename fl::decay< T1 >::type, typename fl::decay< T2 >::type > fl::make_pair | ( | T1 && | t, |
T2 && | u ) |
Definition at line 93 of file pair.h.
promise< T > fl::make_rejected_promise | ( | const char * | error_message | ) |
Convenience function to create a rejected promise (const char* overload)
Definition at line 240 of file promise.h.
References fl::promise< T >::reject().
promise< T > fl::make_rejected_promise | ( | const fl::string & | error_message | ) |
Convenience function to create a rejected promise.
Definition at line 234 of file promise.h.
References fl::promise< T >::reject().
promise< T > fl::make_resolved_promise | ( | T | value | ) |
Convenience function to create a resolved promise.
Definition at line 228 of file promise.h.
References move(), and fl::promise< T >::resolve().
FsImplPtr fl::make_sdcard_filesystem | ( | int | cs_pin | ) |
Definition at line 196 of file file_system.cpp.
References FASTLED_UNUSED, and make_shared().
Referenced by fl::FileSystem::beginSd().
shared_ptr< T > fl::make_shared | ( | Args &&... | args | ) |
Definition at line 348 of file shared_ptr.h.
Referenced by fl::Blend2d::Blend2d(), fl::DigitalPin::DigitalPin(), fl::FxCompositor::FxCompositor(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::Json::Json(), fl::LinePath::LinePath(), fl::RosePath::RosePath(), fl::ScreenMap::ScreenMap(), fl::ScreenMap::ScreenMap(), fl::StrN< SIZE >::StrN(), fl::Video::Video(), fl::XYPath::XYPath(), fl::FxEngine::addFx(), fl::UIDropdown::addNextButton(), fl::shared_ptr< T >::allocate_shared, fl::StrN< SIZE >::assign(), fl::XYMap::constructWithLookUpTable(), fl::XMap::convertToLookUpTable(), fl::XYMap::convertToLookUpTable(), fl::StrN< SIZE >::copy(), fl::StrN< SIZE >::copy(), fl::StrN< SIZE >::copy(), fl::promise< T >::create(), fl::TaskImpl::create_after_frame(), fl::TaskImpl::create_after_frame(), fl::TaskImpl::create_at_framerate(), fl::TaskImpl::create_at_framerate(), fl::TaskImpl::create_before_frame(), fl::TaskImpl::create_before_frame(), fl::TaskImpl::create_every_ms(), fl::TaskImpl::create_every_ms(), CreateArgsLower(), CreateArgsUpper(), fl::FxLayer::draw(), FL_DISABLE_WARNING(), fl::Json::from_char(), fl::JsonValue::from_char(), fl::Json::from_value(), fl::FFT::get_or_create(), fl::Corkscrew::getOrCreateInputSurface(), fl::TransformFloatImpl::Identity(), anonymous_namespace{xypaths.cpp}::make_path(), make_sdcard_filesystem(), make_shared_ptr(), fl::XYPath::NewArchimedeanSpiralPath(), fl::XYPath::NewArchimedeanSpiralPath(), fl::XYPath::NewCatmullRomPath(), fl::XYPath::NewCirclePath(), fl::XYPath::NewCirclePath(), fl::XYPath::NewCustomPath(), fl::XYPath::NewGielisCurvePath(), fl::XYPath::NewHeartPath(), fl::XYPath::NewHeartPath(), fl::XYPath::NewLinePath(), fl::XYPath::NewLinePath(), fl::XYPath::NewPhyllotaxisPath(), fl::XYPath::NewPointPath(), fl::XYPath::NewRosePath(), NewWaveSimulation2D(), fl::NullFileSystem::openRead(), fl::Json::operator=(), fl::Json::operator=(), fl::Json::operator[](), fl::JsonValue::operator[](), fl::JsonValue::parse(), fl::Json::push_back(), fl::StrN< SIZE >::reserve(), fl::Json::set(), setup(), fl::JsonValue::to_string(), and fl::StrN< SIZE >::write().
shared_ptr< T > fl::make_shared_no_tracking | ( | T & | obj | ) |
Definition at line 379 of file shared_ptr.h.
Referenced by fl::Blend2d::add(), fl::FxEngine::addFx(), and fl::Blend2d::setParams().
fl::shared_ptr< T > fl::make_shared_ptr | ( | Args &&... | args | ) |
Definition at line 35 of file memory.h.
References args, forward(), and make_shared().
shared_ptr< T > fl::make_shared_with_deleter | ( | Deleter | d, |
Args &&... | args ) |
Definition at line 359 of file shared_ptr.h.
result< T > fl::make_success | ( | const T & | value | ) |
Helper function to create a successful result.
T | The value type |
value | The success value |
Definition at line 133 of file promise_result.h.
result< T > fl::make_success | ( | T && | value | ) |
Helper function to create a successful result (move)
T | The value type |
value | The success value (moved) |
Definition at line 142 of file promise_result.h.
References move().
Definition at line 93 of file tuple.h.
References args, and forward().
fl::enable_if<!fl::is_array< T >::value, unique_ptr< T > >::type fl::make_unique | ( | Args &&... | args | ) |
Definition at line 42 of file memory.h.
References args, and forward().
Referenced by fl::TaskImpl::TaskImpl(), and fl::FetchManager::register_promise().
fl::enable_if< fl::is_array< T >::value, unique_ptr< T > >::type fl::make_unique | ( | fl::size_t | size | ) |
void * fl::Malloc | ( | fl::size | size | ) |
Definition at line 110 of file allocator.cpp.
Referenced by fl::allocator< U >::allocate().
Iterator fl::max_element | ( | Iterator | first, |
Iterator | last ) |
Definition at line 17 of file algorithm.h.
Iterator fl::max_element | ( | Iterator | first, |
Iterator | last, | ||
Compare | comp ) |
Definition at line 36 of file algorithm.h.
|
inline |
Definition at line 30 of file memfill.h.
Referenced by fl::StrN< SIZE >::copy(), and FL_DISABLE_WARNING().
|
inline |
|
inline |
Definition at line 11 of file memfill.h.
Referenced by fl::FFT_Args::FFT_Args(), fl::FFTContext::FFTContext(), fl::Frame::Frame(), fl::InlinedMemoryBlock< T, N >::InlinedMemoryBlock(), fl::allocator_inlined< T, N, BaseAllocator >::InlinedStorage::InlinedStorage(), Message< Settings::SysExMaxSize >::Message(), fl::allocator< U >::allocate(), fl::SlabAllocator< T, SLAB_SIZE >::allocate(), fl::Frame::clear(), CLEDController::clearLedDataInternal(), clearLeds(), fl::FxLayer::draw(), fill_2dnoise16(), fill_2dnoise8(), fill_noise16(), fill_noise8(), FL_DISABLE_WARNING(), fl::FixedVector< PairKV, N >::insert(), fl::FixedVector< PairKV, N >::insert(), memfill(), fl::bitset_dynamic::reset(), fl::bitset_dynamic::resize(), and shiftUp().
Iterator fl::min_element | ( | Iterator | first, |
Iterator | last ) |
Definition at line 55 of file algorithm.h.
Iterator fl::min_element | ( | Iterator | first, |
Iterator | last, | ||
Compare | comp ) |
Definition at line 74 of file algorithm.h.
|
constexprnoexcept |
Definition at line 27 of file move.h.
References t.
Referenced by fl::deque< int >::deque(), fl::Error::Error(), fl::FFTBins::FFTBins(), fl::Json::Json(), fl::Optional< T >::Optional(), fl::Optional< T >::Optional(), fl::pair< const Key, T >::pair(), fl::pair< const Key, T >::pair(), fl::queue< T, Container >::queue(), fl::result< T >::result(), fl::result< T >::result(), fl::task::task(), fl::tuple< Head, Tail... >::tuple(), fl::unique_ptr< T, Deleter >::unique_ptr(), fl::unique_ptr< T, Deleter >::unique_ptr(), fl::unique_ptr< T, Deleter >::unique_ptr(), fl::unique_ptr< T[], Deleter >::unique_ptr(), fl::unique_ptr< T[], Deleter >::unique_ptr(), fl::unique_ptr< T[], Deleter >::unique_ptr(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::Variant(), fl::XYDrawComposited::XYDrawComposited(), fl::XYDrawGradient::XYDrawGradient(), fl::Scheduler::add_task(), fl::swap_impl< T, false >::apply(), fl::promise< T >::catch_(), fl::task::catch_(), fl::FetchManager::cleanup_completed_promises(), fl::promise< T >::complete_with_value(), fl::RedBlackTree< value_type, PairCompare, Allocator >::emplace(), fl::unordered_set< Key >::emplace(), fl::VectorSet< Key, Allocator >::emplace(), fl::VectorSetFixed< Key, N >::emplace(), fl::deque< int >::ensure_capacity(), fl::HeapVector< DrawItem >::ensure_size(), fl::FixedVector< PairKV, N >::erase(), fl::HeapVector< DrawItem >::erase(), FL_DISABLE_WARNING(), FL_DISABLE_WARNING(), get(), get(), fl::FixedMap< int, FxPtr, FASTLED_FX_ENGINE_MAX_FX >::insert(), fl::FixedVector< PairKV, N >::insert(), fl::FixedVector< PairKV, N >::insert(), fl::HashMap< Key, T, Hash, KeyEqual >::insert(), fl::HeapVector< DrawItem >::insert(), fl::InlinedVector< T, INLINED_SIZE >::insert(), fl::MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > >::insert(), fl::RedBlackTree< value_type, PairCompare, Allocator >::insert(), fl::set< T, fl::allocator_inlined_slab< T, N > >::insert(), fl::SetRedBlackTree< Key, fl::less< Key >, Allocator >::insert(), fl::SortedHeapMap< fl::u32, FramePtr, Less >::insert(), fl::SortedHeapMap< fl::u32, FramePtr, Less >::insert(), fl::unordered_set< Key >::insert(), fl::VectorSet< Key, Allocator >::insert(), fl::VectorSetFixed< Key, N >::insert(), fl::detail::insertion_sort(), make_error(), make_optional(), make_resolved_promise(), make_success(), fl::detail::merge_inplace(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::move_fn(), fl::FFTBins::operator=(), fl::Optional< T >::operator=(), fl::ScreenMap::operator=(), fl::unique_ptr< T, Deleter >::operator=(), fl::unique_ptr< T, Deleter >::operator=(), fl::unique_ptr< T[], Deleter >::operator=(), fl::unique_ptr< T[], Deleter >::operator=(), fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::operator=(), fl::Json::operator[](), fl::JsonValue::operator[](), fl::JsonValue::parse(), fl::ScreenMap::ParseJson(), fl::queue< T, Container >::push(), fl::deque< int >::push_back(), fl::FixedVector< PairKV, N >::push_back(), fl::HeapVector< DrawItem >::push_back(), fl::InlinedVector< T, INLINED_SIZE >::push_back(), fl::InlinedVector< T, INLINED_SIZE >::push_back(), fl::Json::push_back(), fl::deque< int >::push_front(), fl::HashMap< Key, T, Hash, KeyEqual >::rehash(), remove(), remove_if(), fl::HeapVector< DrawItem >::resize(), fl::detail::PromiseImpl< T >::resolve(), fl::promise< T >::resolve(), fl::TaskImpl::set_catch(), fl::detail::PromiseImpl< T >::set_catch_callback(), fl::TaskImpl::set_then(), fl::detail::PromiseImpl< T >::set_then_callback(), fl::promise< T >::then(), fl::task::then(), fl::FixedMap< int, FxPtr, FASTLED_FX_ENGINE_MAX_FX >::update(), and fl::SortedHeapMap< fl::u32, FramePtr, Less >::update().
|
inlinestatic |
Definition at line 23 of file hash.h.
References FL_DISABLE_WARNING_POP, and FL_DISABLE_WARNING_PUSH.
Referenced by fl::FastHash< vec2< T > >::operator()(), fl::Hash< double >::operator()(), fl::Hash< FFT_Args >::operator()(), fl::Hash< fl::string >::operator()(), fl::Hash< fl::WeakPtr< T > >::operator()(), fl::Hash< Key >::operator()(), fl::Hash< T * >::operator()(), and fl::Hash< vec2< T > >::operator()().
Definition at line 1086 of file colorutils.cpp.
References applyGamma_video().
Definition at line 1091 of file colorutils.cpp.
References applyGamma_video().
void fl::napplyGamma_video | ( | CRGB * | rgbarray, |
fl::u16 | count, | ||
float | gamma ) |
Definition at line 1096 of file colorutils.cpp.
References applyGamma_video().
void fl::napplyGamma_video | ( | CRGB * | rgbarray, |
fl::u16 | count, | ||
float | gammaR, | ||
float | gammaG, | ||
float | gammaB ) |
Definition at line 1102 of file colorutils.cpp.
References applyGamma_video().
CHSV & fl::nblend | ( | CHSV & | existing, |
const CHSV & | overlay, | ||
fract8 | amountOfOverlay, | ||
TGradientDirectionCode | directionCode ) |
Definition at line 75 of file colorutils.cpp.
References BACKWARD_HUES, cleanup_R1(), FORWARD_HUES, LONGEST_HUES, scale8(), scale8_LEAVING_R1_DIRTY(), and SHORTEST_HUES.
void fl::nblend | ( | CHSV * | existing, |
const CHSV * | overlay, | ||
fl::u16 | count, | ||
fract8 | amountOfOverlay, | ||
TGradientDirectionCode | directionCode ) |
Definition at line 122 of file colorutils.cpp.
References nblend().
Definition at line 20 of file colorutils.cpp.
References blend8(), cleanup_R1(), and scale8_LEAVING_R1_DIRTY().
Referenced by blend(), blend(), fl::Pride2015::draw(), nblend(), and nblend().
Definition at line 52 of file colorutils.cpp.
References nblend().
void fl::nblendPaletteTowardPalette | ( | CRGBPalette16 & | current, |
CRGBPalette16 & | target, | ||
fl::u8 | maxChanges ) |
Definition at line 1018 of file colorutils.cpp.
Referenced by fl::TwinkleFox::draw(), and loop().
|
inline |
Definition at line 313 of file ptr_impl.h.
References args, and fl::PtrTraits< T >::New().
Ptr< T > fl::NewPtrNoTracking | ( | Args... | args | ) |
References args.
|
inline |
Definition at line 318 of file ptr_impl.h.
References fl::Ptr< T >::NoTracking().
Definition at line 170 of file colorutils.cpp.
Referenced by fade_raw(), and fadeToBlackBy().
Definition at line 148 of file colorutils.cpp.
Referenced by fade_video(), and fadeLightBy().
|
noexcept |
Definition at line 399 of file shared_ptr.h.
|
noexcept |
Definition at line 434 of file shared_ptr.h.
|
noexcept |
Definition at line 246 of file unique_ptr.h.
bool fl::operator!= | ( | const unique_ptr< T1, Deleter1 > & | lhs, |
const unique_ptr< T2, Deleter2 > & | rhs ) |
Definition at line 231 of file unique_ptr.h.
|
noexcept |
Definition at line 439 of file shared_ptr.h.
|
noexcept |
Definition at line 251 of file unique_ptr.h.
|
inline |
|
inline |
bool fl::operator< | ( | const pair< T1, T2 > & | lhs, |
const pair< U1, U2 > & | rhs ) |
Definition at line 66 of file pair.h.
References fl::pair< T1, T2 >::first, and fl::pair< T1, T2 >::second.
|
noexcept |
Definition at line 404 of file shared_ptr.h.
|
noexcept |
Definition at line 409 of file shared_ptr.h.
bool fl::operator== | ( | const pair< T1, T2 > & | lhs, |
const pair< U1, U2 > & | rhs ) |
Definition at line 56 of file pair.h.
References fl::pair< T1, T2 >::first, and fl::pair< T1, T2 >::second.
|
noexcept |
Definition at line 394 of file shared_ptr.h.
|
noexcept |
Definition at line 424 of file shared_ptr.h.
|
noexcept |
Definition at line 236 of file unique_ptr.h.
bool fl::operator== | ( | const unique_ptr< T1, Deleter1 > & | lhs, |
const unique_ptr< T2, Deleter2 > & | rhs ) |
Definition at line 226 of file unique_ptr.h.
References fl::unique_ptr< T, Deleter >::get().
|
noexcept |
Definition at line 429 of file shared_ptr.h.
|
noexcept |
Definition at line 241 of file unique_ptr.h.
|
noexcept |
Definition at line 414 of file shared_ptr.h.
|
noexcept |
Definition at line 419 of file shared_ptr.h.
void fl::pop_heap | ( | Iterator | first, |
Iterator | last ) |
Definition at line 61 of file priority_queue.h.
References pop_heap().
void fl::pop_heap | ( | Iterator | first, |
Iterator | last, | ||
Compare | comp ) |
Definition at line 52 of file priority_queue.h.
References sift_down().
Referenced by fl::PriorityQueue< T, Compare, VectorT >::pop(), and pop_heap().
void fl::print | ( | const char * | str | ) |
Definition at line 49 of file io.cpp.
Referenced by fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), fl::ostream::operator<<(), and printf().
void fl::printf | ( | const char * | format, |
const Args &... | args ) |
Printf-like formatting function that prints directly to the platform output.
format | Format string with placeholders like "%d", "%s", "%f" etc. |
args | Arguments to format |
Supported format specifiers:
Example usage:
Definition at line 393 of file printf.h.
References args, fl::StrN< SIZE >::c_str(), fl::printf_detail::format_impl(), print(), and fl::StrStream::str().
void fl::println | ( | const char * | str | ) |
Definition at line 83 of file io.cpp.
void * fl::PSRamAllocate | ( | fl::size | size, |
bool | zero ) |
Definition at line 77 of file allocator.cpp.
Referenced by fl::PSRamAllocator< T >::Alloc().
void fl::PSRamDeallocate | ( | void * | ptr | ) |
Definition at line 96 of file allocator.cpp.
Referenced by fl::PSRamAllocator< T >::Free().
|
noexcept |
Definition at line 65 of file bit_cast.h.
References bit_cast().
Referenced by CLEDController::endShowLeds().
void fl::push_heap | ( | Iterator | first, |
Iterator | last ) |
Definition at line 47 of file priority_queue.h.
References push_heap().
void fl::push_heap | ( | Iterator | first, |
Iterator | last, | ||
Compare | comp ) |
Definition at line 33 of file priority_queue.h.
References pos.
Referenced by fl::PriorityQueue< T, Compare, VectorT >::push(), and push_heap().
int fl::read | ( | ) |
Definition at line 148 of file io.cpp.
Referenced by fl::istream_real::get(), fl::istream_real::getline(), fl::ByteStream::readCRGB(), fl::FileHandle::readCRGB(), fl::PixelStream::readFrameAt(), and fl::istream_real::readLine().
|
noexcept |
Definition at line 464 of file shared_ptr.h.
References bit_cast().
Iterator fl::remove | ( | Iterator | first, |
Iterator | last, | ||
const T & | value ) |
Definition at line 205 of file algorithm.h.
References move().
Iterator fl::remove_if | ( | Iterator | first, |
Iterator | last, | ||
UnaryPredicate | pred ) |
Definition at line 220 of file algorithm.h.
References move().
void fl::reverse | ( | Iterator | first, |
Iterator | last ) |
Definition at line 10 of file algorithm.h.
References swap().
FASTLED_FORCE_INLINE void fl::rgb_2_rgbw | ( | RGBW_MODE | mode, |
uint16_t | w_color_temperature, | ||
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b, | ||
uint8_t | r_scale, | ||
uint8_t | g_scale, | ||
uint8_t | b_scale, | ||
uint8_t * | out_r, | ||
uint8_t * | out_g, | ||
uint8_t * | out_b, | ||
uint8_t * | out_w ) |
Converts RGB to RGBW using one of the functions.
Dynamic version of the rgb_w_rgbw function with less chance for the compiler to optimize.
Definition at line 149 of file rgbw.h.
References kRGBWBoostedWhite, kRGBWExactColors, kRGBWInvalid, kRGBWMaxBrightness, kRGBWNullWhitePixel, kRGBWUserFunction, rgb_2_rgbw_exact(), rgb_2_rgbw_max_brightness(), rgb_2_rgbw_null_white_pixel(), rgb_2_rgbw_user_function(), and rgb_2_rgbw_white_boosted().
Referenced by PixelController< RGB_ORDER, LANES, MASK >::loadAndScaleRGBW(), and rgb_2_rgbw().
FASTLED_FORCE_INLINE void fl::rgb_2_rgbw | ( | uint16_t | w_color_temperature, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b, | ||
uint8_t | r_scale, | ||
uint8_t | g_scale, | ||
uint8_t | b_scale, | ||
uint8_t * | out_r, | ||
uint8_t * | out_g, | ||
uint8_t * | out_b, | ||
uint8_t * | out_w ) |
Definition at line 183 of file rgbw.h.
References rgb_2_rgbw().
void fl::rgb_2_rgbw_exact | ( | uint16_t | w_color_temperature, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b, | ||
uint8_t | r_scale, | ||
uint8_t | g_scale, | ||
uint8_t | b_scale, | ||
uint8_t * | out_r, | ||
uint8_t * | out_g, | ||
uint8_t * | out_b, | ||
uint8_t * | out_w ) |
Converts RGB to RGBW using a color transfer method from saturated color channels to white.
This is designed to produce the most accurate white point for a given color temperature and reduces power usage of the chip since a white led is much more efficient than three color channels of the same power mixing together. However the pixel will never achieve full brightness since the white channel is 3x more efficient than the color channels mixed together, so in this mode the max brightness of a given pixel is reduced.
Definition at line 41 of file rgbw.cpp.
References scale8().
Referenced by rgb_2_rgbw(), and set_rgb_2_rgbw_function().
void fl::rgb_2_rgbw_max_brightness | ( | uint16_t | w_color_temperature, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b, | ||
uint8_t | r_scale, | ||
uint8_t | g_scale, | ||
uint8_t | b_scale, | ||
uint8_t * | out_r, | ||
uint8_t * | out_g, | ||
uint8_t * | out_b, | ||
uint8_t * | out_w ) |
The minimum brigthness of the RGB channels is used to set the W channel.
This will allow the max brightness of the led chipset to be used. However the leds will appear over-desaturated in this mode.
Definition at line 56 of file rgbw.cpp.
References scale8().
Referenced by rgb_2_rgbw().
void fl::rgb_2_rgbw_null_white_pixel | ( | uint16_t | w_color_temperature, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b, | ||
uint8_t | r_scale, | ||
uint8_t | g_scale, | ||
uint8_t | b_scale, | ||
uint8_t * | out_r, | ||
uint8_t * | out_g, | ||
uint8_t * | out_b, | ||
uint8_t * | out_w ) |
Converts RGB to RGBW with the W channel set to black, always.
Definition at line 67 of file rgbw.cpp.
References scale8().
Referenced by rgb_2_rgbw().
void fl::rgb_2_rgbw_user_function | ( | uint16_t | w_color_temperature, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b, | ||
uint8_t | r_scale, | ||
uint8_t | g_scale, | ||
uint8_t | b_scale, | ||
uint8_t * | out_r, | ||
uint8_t * | out_g, | ||
uint8_t * | out_b, | ||
uint8_t * | out_w ) |
Definition at line 126 of file rgbw.cpp.
References g_user_function.
Referenced by rgb_2_rgbw().
void fl::rgb_2_rgbw_white_boosted | ( | uint16_t | w_color_temperature, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b, | ||
uint8_t | r_scale, | ||
uint8_t | g_scale, | ||
uint8_t | b_scale, | ||
uint8_t * | out_r, | ||
uint8_t * | out_g, | ||
uint8_t * | out_b, | ||
uint8_t * | out_w ) |
Converts RGB to RGBW with a boosted white channel.
Definition at line 79 of file rgbw.cpp.
References scale8().
Referenced by rgb_2_rgbw().
Definition at line 19 of file hsv16.cpp.
References fl_max(), fl_min(), and scale8_to_16_accurate().
Referenced by fl::HSV16::HSV16().
void fl::rgbw_partial_reorder | ( | EOrderW | w_placement, |
uint8_t | b0, | ||
uint8_t | b1, | ||
uint8_t | b2, | ||
uint8_t | w, | ||
uint8_t * | out_b0, | ||
uint8_t * | out_b1, | ||
uint8_t * | out_b2, | ||
uint8_t * | out_b3 ) |
Definition at line 134 of file rgbw.cpp.
References W0, W1, W2, and W3.
Referenced by PixelController< RGB_ORDER, LANES, MASK >::loadAndScaleRGBW().
|
inlinestatic |
Definition at line 11 of file hsv16.cpp.
References x.
Referenced by RGBtoHSV16().
fl::string fl::serializeValue | ( | const JsonValue & | value | ) |
void fl::set_rgb_2_rgbw_function | ( | rgb_2_rgbw_function | func | ) |
Definition at line 118 of file rgbw.cpp.
References g_user_function, and rgb_2_rgbw_exact().
void fl::SetPSRamAllocator | ( | void *(* | alloc )(fl::size), |
void(* | free )(void *) ) |
Definition at line 72 of file allocator.cpp.
void fl::shuffle | ( | Iterator | first, |
Iterator | last ) |
Definition at line 561 of file algorithm.h.
References default_random(), and shuffle().
void fl::shuffle | ( | Iterator | first, |
Iterator | last, | ||
fl_random & | rng ) |
Definition at line 544 of file algorithm.h.
References swap().
void fl::shuffle | ( | Iterator | first, |
Iterator | last, | ||
RandomGenerator & | g ) |
Definition at line 527 of file algorithm.h.
References swap().
Referenced by shuffle().
void fl::sift_down | ( | Iterator | first, |
Iterator | last, | ||
Iterator | start, | ||
Compare | comp ) |
Definition at line 10 of file priority_queue.h.
Referenced by pop_heap().
|
static |
|
static |
Definition at line 36 of file sin32.h.
References FASTLED_FORCE_INLINE, and sinArray.
Referenced by easeOutSine16().
int fl::snprintf | ( | char * | buffer, |
fl::size | size, | ||
const char * | format, | ||
const Args &... | args ) |
Snprintf-like formatting function that writes to a buffer.
buffer | Output buffer to write formatted string to |
size | Maximum number of characters to write (including null terminator) |
format | Format string with placeholders like "%d", "%s", "%f" etc. |
args | Arguments to format |
Supported format specifiers:
Example usage:
Definition at line 422 of file printf.h.
References args, fl::printf_detail::format_impl(), and fl::StrStream::str().
Referenced by fl::string_functions::ftoa(), and sprintf().
void fl::sort | ( | Iterator | first, |
Iterator | last ) |
Definition at line 501 of file algorithm.h.
References sort().
void fl::sort | ( | Iterator | first, |
Iterator | last, | ||
Compare | comp ) |
Definition at line 491 of file algorithm.h.
References fl::detail::quicksort_impl().
Referenced by sort().
Tile2x2_u8 fl::splat | ( | vec2f | xy | ) |
"Splat" as in "splat pixel rendering" takes a pixel value in float x,y coordinates and "splats" it into a 2x2 tile of pixel values.
Each of the four pixels in the tile is a fl::u8 value in the range [0..255] that represents the intensity of the pixel at that point. Tile2x2_u8 splat(vec2f xy);
Definition at line 14 of file splat.cpp.
References fl::Tile2x2_u8::lower_left(), fl::Tile2x2_u8::lower_right(), to_uint8(), fl::Tile2x2_u8::upper_left(), fl::Tile2x2_u8::upper_right(), x, xy(), and y.
Referenced by fl::Corkscrew::at_splat_extrapolate(), and fl::XYPathRenderer::at_subpixel().
int fl::sprintf | ( | char(&) | buffer[N], |
const char * | format, | ||
const Args &... | args ) |
Sprintf-like formatting function that writes to a buffer.
buffer | Output buffer to write formatted string to |
format | Format string with placeholders like "%d", "%s", "%f" etc. |
args | Arguments to format |
This function writes a formatted string to the provided buffer. The buffer size is deduced at compile time from the array reference, providing automatic safety against buffer overflows.
Example usage:
Definition at line 468 of file printf.h.
References args, and snprintf().
void fl::stable_sort | ( | Iterator | first, |
Iterator | last ) |
Definition at line 519 of file algorithm.h.
References stable_sort().
void fl::stable_sort | ( | Iterator | first, |
Iterator | last, | ||
Compare | comp ) |
Definition at line 509 of file algorithm.h.
References fl::detail::mergesort_impl().
Referenced by stable_sort().
|
noexcept |
Definition at line 451 of file shared_ptr.h.
|
noexcept |
Definition at line 156 of file array.h.
Referenced by fl::FixedVector< PairKV, N >::FixedVector(), fl::InlinedVector< T, INLINED_SIZE >::InlinedVector(), fl::ScreenMap::ScreenMap(), fl::detail::heap_sort(), fl::detail::partition(), reverse(), fl::detail::rotate_impl(), shuffle(), shuffle(), fl::detail::sift_down(), fl::array< T, N >::swap(), fl::FixedVector< PairKV, N >::swap(), fl::HashMap< Key, T, Hash, KeyEqual, INLINED_COUNT >::Entry::swap(), fl::HashMapLru< Key, T, Hash, KeyEqual, INLINED_COUNT >::swap(), fl::HeapVector< DrawItem >::swap(), fl::HeapVector< DrawItem >::swap(), fl::HeapVector< DrawItem >::swap(), fl::InlinedVector< T, INLINED_SIZE >::swap(), fl::pair< const Key, T >::swap(), fl::RedBlackTree< value_type, PairCompare, Allocator >::swap(), fl::shared_ptr< T >::swap(), fl::shared_ptr< T >::swap(), fl::string::swap(), fl::unique_ptr< T, Deleter >::swap(), fl::unique_ptr< T[], Deleter >::swap(), and fl::weak_ptr< T >::swap().
|
noexcept |
void fl::swap | ( | queue< T, Container > & | lhs, |
queue< T, Container > & | rhs ) |
Swap two queues.
T | Element type |
Container | Container type |
lhs | First queue |
rhs | Second queue |
Definition at line 145 of file queue.h.
References fl::queue< T, Container >::swap().
|
noexcept |
Definition at line 445 of file shared_ptr.h.
void fl::swap | ( | T & | a, |
T & | b ) |
Definition at line 706 of file type_traits.h.
|
noexcept |
Definition at line 220 of file unique_ptr.h.
Definition at line 197 of file weak_ptr.h.
void fl::swap_by_copy | ( | T & | a, |
T & | b ) |
Definition at line 712 of file type_traits.h.
fl::u32 fl::time | ( | ) |
Universal millisecond timer - returns milliseconds since system startup.
This function provides consistent timing across all FastLED platforms:
Definition at line 136 of file time.cpp.
References time().
Referenced by fl::HashMapLru< Key, T, Hash, KeyEqual, INLINED_COUNT >::ValueWithTimestamp::ValueWithTimestamp(), drawPlasmaWave(), fl::task::operator=(), rainbowWave(), fl::task::set_last_run_time(), fl::TaskImpl::set_last_run_time(), time(), fl::Scheduler::update(), and fl::Scheduler::update_tasks_of_type().
u16 fl::time_alpha16 | ( | u32 | now, |
u32 | start, | ||
u32 | end ) |
Definition at line 24 of file time_alpha.cpp.
References end().
u8 fl::time_alpha8 | ( | u32 | now, |
u32 | start, | ||
u32 | end ) |
Definition at line 8 of file time_alpha.cpp.
References end().
Referenced by fl::TimeClampedTransition::update8(), and fl::TimeRamp::update8().
|
inline |
Definition at line 17 of file time_alpha.h.
References end().
Referenced by fl::TimeClampedTransition::updatef().
|
inline |
|
inline |
|
static |
|
inline |
Traverse a grid segment by selecting the cells that are crossed.
This version will select the fastest integer implementation based on the length of the segment. Most of the time it will call traverseGridSegment16() since segment spans are typically < 256 pixels.
GridVisitor |
start | start point |
end | end point |
visitor | called for each cell visited. |
Fully tested.
Definition at line 276 of file traverse_grid.h.
References ABS, end(), MAX, traverseGridSegment16(), traverseGridSegment32(), fl::vec2< T >::x, and fl::vec2< T >::y.
|
inline |
Traverse a grid segment using fixed-point 8.8 arithmetic.
GridVisitor |
start | start point |
end | end point |
visitor | called for each cell visited. |
UNTESTED!!!!
Definition at line 123 of file traverse_grid.h.
References ABS, end(), fl::vec2< T >::x, and fl::vec2< T >::y.
Referenced by traverseGridSegment().
|
inline |
GridVisitor |
start | start point |
end | end point |
visitor | called for each cell visited. |
UNTESTED!!!!
Definition at line 203 of file traverse_grid.h.
References ABS, end(), fl::vec2< T >::x, and fl::vec2< T >::y.
Referenced by traverseGridSegment().
|
inline |
Traverse a grid segment using floating point arithmetic.
Traverse a grid segment using fixed-point 8.8 arithmetic.
Useful for testing.
GridVisitor |
start | start point |
end | end point |
visitor | called for each cell visited. |
Fully tested.
GridVisitor |
start | start point |
end | end point |
visitor | called for each cell visited. |
Fully tested.
Definition at line 68 of file traverse_grid.h.
References ABS, end(), floor(), FLT_MAX, MIN, t, fl::vec2< T >::x, and fl::vec2< T >::y.
|
inline |
Definition at line 58 of file upscale.h.
References fl::XYMap::kLineByLine, upscaleArbitrary(), upscalePowerOf2(), upscaleRectangular(), upscaleRectangularPowerOf2(), and xyMap.
Referenced by fl::ScaleUp::expand(), and CRGB::upscale().
void fl::upscaleArbitrary | ( | const CRGB * | input, |
CRGB * | output, | ||
u16 | inputWidth, | ||
u16 | inputHeight, | ||
const 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 106 of file upscale.cpp.
References bilinearInterpolate(), x, xyMap, and y.
Referenced by fl::ScaleUp::expand(), and upscale().
void fl::upscaleArbitraryFloat | ( | const CRGB * | input, |
CRGB * | output, | ||
u16 | inputWidth, | ||
u16 | inputHeight, | ||
const XYMap & | xyMap ) |
Definition at line 267 of file upscale.cpp.
References upscaleFloat(), x, xyMap, and y.
void fl::upscaleFloat | ( | const CRGB * | input, |
CRGB * | output, | ||
u8 | inputWidth, | ||
u8 | inputHeight, | ||
const XYMap & | xyMap ) |
Definition at line 316 of file upscale.cpp.
References upscaleFloat(), x, xyMap, and y.
Definition at line 246 of file upscale.cpp.
Referenced by fl::ScaleUp::expand(), upscaleArbitraryFloat(), and upscaleFloat().
void fl::UpscalePalette | ( | const class CHSVPalette16 & | srcpal16, |
class CHSVPalette256 & | destpal256 ) |
Definition at line 970 of file colorutils.cpp.
References ColorFromPalette().
void fl::UpscalePalette | ( | const class CHSVPalette16 & | srcpal16, |
class CHSVPalette32 & | destpal32 ) |
Definition at line 986 of file colorutils.cpp.
void fl::UpscalePalette | ( | const class CHSVPalette32 & | srcpal32, |
class CHSVPalette256 & | destpal256 ) |
Definition at line 1002 of file colorutils.cpp.
References ColorFromPalette().
void fl::UpscalePalette | ( | const class CRGBPalette16 & | srcpal16, |
class CRGBPalette256 & | destpal256 ) |
Definition at line 963 of file colorutils.cpp.
References ColorFromPalette().
void fl::UpscalePalette | ( | const class CRGBPalette16 & | srcpal16, |
class CRGBPalette32 & | destpal32 ) |
Definition at line 977 of file colorutils.cpp.
void fl::UpscalePalette | ( | const class CRGBPalette32 & | srcpal32, |
class CRGBPalette256 & | destpal256 ) |
Definition at line 995 of file colorutils.cpp.
References ColorFromPalette().
void fl::upscalePowerOf2 | ( | const CRGB * | input, |
CRGB * | output, | ||
u8 | inputWidth, | ||
u8 | inputHeight, | ||
const 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 170 of file upscale.cpp.
References bilinearInterpolatePowerOf2(), x, xyMap, and y.
Referenced by fl::ScaleUp::expand(), and upscale().
void fl::upscaleRectangular | ( | const CRGB * | input, |
CRGB * | output, | ||
u16 | inputWidth, | ||
u16 | inputHeight, | ||
u16 | outputWidth, | ||
u16 | outputHeight ) |
Optimized upscale for rectangular/line-by-line XY maps.
input | The input grid to read from. |
output | The output grid to write into the interpolated values. |
inputWidth | The width of the input grid. |
inputHeight | The height of the input grid. |
outputWidth | The width of the output grid. |
outputHeight | The height of the output grid. This version bypasses XY mapping overhead for rectangular layouts. |
Definition at line 20 of file upscale.cpp.
References bilinearInterpolate(), x, and y.
Referenced by upscale().
void fl::upscaleRectangularPowerOf2 | ( | const CRGB * | input, |
CRGB * | output, | ||
u8 | inputWidth, | ||
u8 | inputHeight, | ||
u8 | outputWidth, | ||
u8 | outputHeight ) |
Optimized upscale for rectangular/line-by-line XY maps (power-of-2 version).
input | The input grid to read from. |
output | The output grid to write into the interpolated values. |
inputWidth | The width of the input grid (must be power of 2). |
inputHeight | The height of the input grid (must be power of 2). |
outputWidth | The width of the output grid (must be power of 2). |
outputHeight | The height of the output grid (must be power of 2). This version bypasses XY mapping overhead for rectangular layouts. |
Definition at line 63 of file upscale.cpp.
References bilinearInterpolatePowerOf2(), x, and y.
Referenced by upscale().
i32 fl::worley_noise_2d_q15 | ( | i32 | x, |
i32 | y ) |
Definition at line 33 of file noise_woryley.cpp.
FASTLED_FORCE_INLINE u16 fl::x_linear | ( | u16 | x, |
u16 | length ) |
Definition at line 14 of file xmap.h.
References FASTLED_FORCE_INLINE, length(), and x.
Referenced by fl::XMap::mapToIndex().
FASTLED_FORCE_INLINE u16 fl::x_reverse | ( | u16 | x, |
u16 | length ) |
Definition at line 19 of file xmap.h.
References FASTLED_FORCE_INLINE, length(), and x.
Referenced by fl::XMap::mapToIndex().
fl::u16 fl::XY | ( | fl::u16 | x, |
fl::u16 | y ) |
Definition at line 27 of file Luminova.h.
References HEIGHT, kMatrixSerpentineLayout, WIDTH, x, and y.
Definition at line 22 of file blur.cpp.
References FASTLED_UNUSED, x, and y.
Referenced by Fire2023(), loop(), plotDot(), fl::anonymous_namespace{blur.cpp}::xy_legacy_wrapper(), and xy_map_function().
FASTLED_FORCE_INLINE u16 fl::xy_line_by_line | ( | u16 | x, |
u16 | y, | ||
u16 | width, | ||
u16 | height ) |
Definition at line 29 of file xymap.h.
References FASTLED_FORCE_INLINE, x, and y.
Referenced by fl::XYMap::mapToIndex().
FASTLED_FORCE_INLINE u16 fl::xy_serpentine | ( | u16 | x, |
u16 | y, | ||
u16 | width, | ||
u16 | height ) |
Definition at line 19 of file xymap.h.
References FASTLED_FORCE_INLINE, x, and y.
Referenced by fl::XYMap::mapToIndex().
const TProgmemRGBPalette16* fl::ActivePaletteList[] |
Definition at line 293 of file twinklefox.h.
Referenced by chooseNextColorPalette(), and fl::TwinkleFox::chooseNextColorPalette().
|
static |
Definition at line 177 of file animartrix.hpp.
Referenced by fl::Animartrix::getAnimartrixName(), getAnimartrixName(), and fl::FastLEDANIMartRIX::loop().
const TProgmemRGBPalette16 fl::BlueWhite_p |
istream fl::cin |
Definition at line 126 of file istream.cpp.
const i16 * fl::cosArray = &sinLut[64] |
Definition at line 48 of file sin32.cpp.
Referenced by cos16lut(), and cos32().
ostream fl::cout |
Definition at line 6 of file ostream.cpp.
const endl_t fl::endl |
Definition at line 9 of file ostream.cpp.
const TProgmemRGBPalette16 fl::FairyLight_p |
Definition at line 258 of file twinklefox.h.
rgb_2_rgbw_function fl::g_user_function = rgb_2_rgbw_exact |
Definition at line 116 of file rgbw.cpp.
Referenced by rgb_2_rgbw_user_function(), and set_rgb_2_rgbw_function().
const u16 fl::gamma_2_8 |
Definition at line 20 of file ease.cpp.
Referenced by gamma16().
const TProgmemRGBPalette16 fl::Holly_p |
Definition at line 243 of file twinklefox.h.
const TProgmemRGBPalette16 fl::Ice_p |
Definition at line 286 of file twinklefox.h.
|
constexpr |
Definition at line 11 of file optional.h.
Referenced by fl::Json::as_audio(), fl::JsonValue::as_bool(), fl::JsonValue::as_bool(), fl::Json::as_bytes(), fl::Json::as_float(), fl::JsonValue::as_float(), fl::JsonValue::as_float(), fl::Json::as_floats(), fl::Json::as_int(), fl::JsonValue::as_int(), fl::JsonValue::as_int(), fl::JsonValue::get(), fl::JsonValue::get(), fl::response::get_header(), and fl::Json::try_as().
const TProgmemRGBPalette16 fl::RedGreenWhite_p |
const TProgmemRGBPalette16 fl::RedWhite_p |
const TProgmemRGBPalette16 fl::RetroC9_p |
Definition at line 281 of file twinklefox.h.
const i16 * fl::sinArray = &sinLut[0] |
Definition at line 46 of file sin32.cpp.
Referenced by sin16lut(), and sin32().
const i16 fl::sinLut[] |
Definition at line 8 of file sin32.cpp.
const TProgmemRGBPalette16 fl::Snow_p |
Definition at line 276 of file twinklefox.h.