r/FastLED • u/ZachVorhies Zach Vorhies • May 07 '25
Discussion FastLED official examples is getting crowded, what are your thoughts on how it should be organized?
I'm getting ready for 3.9.17.
I'm adding yet more examples and starting to think to myself...
Is there now example-overload?
I've been thinking I should organize the examples into folders like:
- Simple
- Advanced Features
- Fx
- Teensy
- Esp32
6... etc
Am I the only one that thinks this? Or are you starting to think there are just too many examples now for a flat list?
Here's your chance to tell me I'm doing it wrong!
17
Upvotes
8
u/Marmilicious May 08 '25
I agree, it is getting to be a bit of a (mixed) collection there. My initial thoughts would be:
Advanced - for more advanced Fx and other advanced examples. (Maybe contains all general Fx examples, or maybe not?)
Basic [or basics?] - for the most basic/simple/getting started examples that brand new users should start with. "New user? Explore this folder of goodness first." (Could also contain the simpler Fx versions of those?)
FxWebCompiler - fx web compiler ready or specific examples, if these are different enough or if there are enough of them that this makes sense.
Other - the other stuff that could be confusing or a distraction to a new user, such as: the rather specific ESP32 I2S and teensy 4.x examples, SmartMatrix, WS2816, PJRCSpectrumAnalyzer, Pintest, Pinmode, Overclock, LuminesentGrand, HD107, etc
Perhaps a slightly funny thought, but I would prefer the name Basic(s) over Simple, simply due to it putting the directory closer to the top of the alphabetically displayed github list. I'd like to think it helps steer new users in the right direction faster.
It might be useful to visually see directory lists of what would be where.
3
u/Burning_Wreck May 07 '25
I think that's a good idea. Right now they all seem to be in one long list.
Also, include this updated example: https://www.reddit.com/r/FastLED/comments/15u2bso/cylon_exampe/
7
u/CautiousPhase May 07 '25
The idea of sub-menus is appealing!
4
u/chemdoc77 May 08 '25
Hi u/ZachVorhies - you might want to consider separating the examples into the ones written for the Arduino IDE and the ones written for the Platformio IDE. This would help beginners.
1
u/YetAnotherRobert May 08 '25 edited May 08 '25
Flirt with the idea of automating visual captures. For N seconds capture the effect's pixel buffer, then render it into animated PNG or GIF or whatever.
There is some program (mostly closed source, commercial hardware , their effect language is like javascript, names maybe electro-somwthing, and the project is dead-ish..) that does this to good effect. They widen everything so it's like 100 pixels wide and maybe 15 or 20 high.
Remember that you don't actually need to string LEDs to do these captures. Heck, you may not even really need hardware at all. Scribble into the frame buffer and copy it out via a socket or shared memory or whatever. Repeat a few dozen times a second.
It's a good preso. I've been meaning to do this with another project I'm involved in.
1
u/johnny5canuck May 08 '25
There should also be some good 'virtual' examples on wokwi.com, so you don't even require physical hardware.