Hello, I need some help with a project I'm working on.

(acul009) #1

Hello, I need some help with a project I’m working on.
I want to read the type of LED-strip from an sd-card, but I don’t how to actually do that or if it’s even possible.

I want to change the NEOPIXEL at runtime to something else:

(Jason Coon) #2

It can be done, but it’s not easy. FastLED uses templates to compile only what’s being used, to save flash and ram.

You can search this community for “runtime” and “AllPixel”: https://plus.google.com/communities/109127054924227823508/s/allpixel

(Marc Miller) #3

More thoughts here:

(陳柏廷) #4

maybe you can compile all your possible strips, and then decide by function which to use later?

(acul009) #5

Thank you for your help.
I’m trying to make a system that is easy to use and can be configured with an additional program I’m going to write. Because I don’t know which strip type and pin is going to be used, I’m thinking about creating the c code from the settings and then uploading it in the backround via the arduino ide (command line).

That way I could still benefit from the templates while also giving the user a nice gui for setting everything up.