Hey everyone, I’m having some trouble implementing what I think should be a simple

fastled-support
gplus
(Sam Giardina) #1

Hey everyone, I’m having some trouble implementing what I think should be a simple pattern

I have a 6 wide by 24 tall array of leds defined by CRGB leds[6][24]. I want to scroll a sine (or tri) wave horizontally across the the array. Essentially would have one led lit on each strip bouncing up and down, but the position of each led would be offset from the other strips.

I would also like to be able to change the period of the sine wave, as well as how fast it is scrolling across the matrix.

Any suggestions on how to do this?

Thanks in advance!

(Ken White) #2

@Sam_Giardina - Look at my following post concerning how to do both sine wave and sawtooth wave animations:

I have included the code for both sine wave and sawtooth wave animations on GitHub in my post. Also, @Jason_Coon ’s Aurora project has a great sine wave animation at:

Here is the video for my sine wave animation: