Skip to content

Variables for template params #1179

Open

Description

@mcpacific

I'm new to FastLED and I was wondering if there is a way to use variables for the template parameters, such as strip_type and color_order? this would allow me to store the data during setup and implement a cleaner, universal code for several different LED strips.

In other words (shorted for clarity):

strcpy(strip_type, custom_strip_type.getValue());
strcpy(color_order, custom_color_order.getValue());
FastLED.addLeds<strip_type, DATA_PIN, color_order>(leds, NUM_LEDS);

I did a search but couldn't find any information.

Activity

  1. marmilicious commented on Jan 21, 2021

    @marmilicious
    Contributor

    Have a look at these two thread for a bit of insight about this:

    #282

    #826

  2. added
    area: core
    status: stale
    status: triage
    on Apr 16, 2026
  3. github-actions commented on Sep 3, 2026

    @github-actions
    Contributor

    This issue was closed after 30 additional days without activity. If it is still relevant, please comment with current reproduction details or other actionable information and it can be reopened.

  4. zackees commented on Sep 3, 2026

    @zackees
    Member

    Reopening: this issue was closed automatically by a stale-bot run, not by a maintainer decision. That auto-close behavior was a mistake and has been disabled — FastLED issues will no longer be closed for inactivity. Apologies for the noise.

  5. reopened this on Sep 3, 2026
  6. removed
    status: stale
    on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: corestatus: triage

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions