FastLED 3.9.15
Loading...
Searching...
No Matches

◆ FL_PROGMEM

#define FL_PROGMEM   PROGMEM

PROGMEM keyword for storage.

Teensy 4.x (__IMXRT1062__) workaround: Teensy core defines PROGMEM as __attribute__((section(".progmem"))), which causes GCC to emit "section type conflict" errors when a single translation unit contains FL_PROGMEM variables of different types (e.g. CRGB, float, i32) — see the fl.fx+ unity build that aggregates colorpalettes.h, sin32.h, and mic_response_data.h. Teensy 4 has a unified linear address space and places const data in .rodata (flash) automatically via the linker script, so the section attribute is unnecessary on this platform. Emitting empty FL_PROGMEM keeps user code that uses Arduino's PROGMEM directly unaffected.

Definition at line 71 of file fastled_progmem.h.

Referenced by fl::easeInSine8(), fl::anonymous_namespace{five_bit_hd_gamma.cpp.hpp}::five_bit_impl::FL_ALIGN_PROGMEM(), fl::FL_ALIGN_PROGMEM(), and fl::gfx::detail::FL_ALIGN_PROGMEM().