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

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!

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

https://plus.google.com/102004717133653297761/posts/dfJMis1aD6M

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: