@SteveYager_twitter I'll point you to this wiki which has a collection of some of the stuff you're asking about.
After that please feel free to post questions to the FastLED Reddit group and we'll try to help.
You might find this sketch useful too for creating a timed animation:
Hue is the only element that needs to be scaled. Try
fastledhue = (inputhue * 182) / 256;
That should scale hue appropriately into the range 0..255
Also make sure to explicitly use the “spectrum” conversion functions that FastLED provides, not the “rainbow” ones which are the default. External HSV sources will almost certainly assume “spectrum” distribution of hues, so make sure to use
CRGB rgb = hsv2rgb_spectrum( hsv)
Lastly, these questions are best asked and answered over on the /r/FastLED subreddit. We don’t use Gitter too much these days. Good luck with your project!
Ah sorry yes. If they’re giving you 0..100 then this should convert them to 0..255
scaledval = ( inputval * 653) / 256;
This conversion is the same as * 2.55, but uses only integer multiplication and binary bit shifts — its significantly faster than using floating point numbers, especially on lower-end microcontrollers. It’s mostly just a habit for me for this kind of high-volume conversion: it’s computed for every pixel for every frame, and thus worth streamlining.
So, I've been banging my head against the wall on this for 2 days. Initially I thought it was a memory issue, but after seriously debugging for hours and hours (including getting help in the arduino discord), I've come to the conclusion that it's
FastLED.show() that is crashing. It could be due to interop with the free running mode, I'm not sure, I'm relatively new to this. Here's the code. I've highlighted the spot that's revealed it's just FastLED.show() that's crashing. https://github.com/snowe2010/waveform_warning_system/blob/master/waveform_warning_system.ino#L233-L238
Any help would be really really appreciated.
Hello everybody 🙂👋🏼
I am working on a pretty large light sculpture involving ~4300 SK9822 LEDs but I have a classic problem: the end of the strip flickers. It only seems to happen when the system starts to draw more power which is super weird to me since the PSUs are rated for much more than what is drawn. I posted a more detailed version on Reddit, I would be very grateful if some of you checked it out :)