So here is a cheeky request — is there any chance we can have

So here is a cheeky request — is there any chance we can have sawtooth and square waves added to the other FastLED wave functions? Preferably in 8 and 16bit :slight_smile:

Both of those functions are trivially easy to code, especially compared to sine waves. Square wave is computationally very cheap as well :slight_smile:

I’ll make more comments later, but I think we’re already there. Stay tuned.

@Luminous_Elements - agree, but it’s kind of handy to have such a thing all in one place - being able to swap out sine for triangle to try new stuff

@Mark_Kriegsman - brill! I have additional ulterior motives (I’m using your fast math stuff for something entirely different) but needed a sawtooth type wave for some LEDs yesterday

(And yes, I do realise I’m basically asking for something that does 65535-x and if(x<32767) {return 65535} else {return 0} :slight_smile: )

@Mark_Kriegsman another cheeky request — any chance of the cubic and/or quad waves in 16 bit?

In the queue…

@Mark_Kriegsman awesome!