Okay. I've started rebuilding the LED Patterns wiki,

Okay. I’ve started rebuilding the LED Patterns wiki, after nuking it because of a spambot invasion. So far, I’ve put up a really nice, fast Plasma animation for matrixes, and I’ll be adding a bunch of utility code that I’ve come up with for matrixes and strips.
http://ledpatterns.twyst.us

Excellent - thanks Noel! I was actually going to ask you if you could post some of the patterns you were using on your recent creation. :slight_smile:

Two of them are bitmaps that I converted using a web script I made - I might tidy that up and make it generically usable.

I’ve seen lookup tables like that in other sketches, and I’ve always wondered what logic/algorithm is used to generate the values. Can you shed any light on this?

it’s basically just doing a one-time run of a sine/cosine function at a given resolution (1 degree) and outputting the result. Wikipedia link: http://en.wikipedia.org/wiki/Lookup_table#Computing_sines

Ok - that makes sense. Thanks for the link too! :slight_smile:

One of the patterns I’m really interested in is scrolling text. I’ve come at it from various different angles, and I’m close but not completely there. If you wouldn’t mind sharing that, I think it would be another great addition to your patterns wiki.

I actually don’t have a text routine - the “Daft Punk” scroller is really a bitmap. The first issue is the font - there’s one in the Adafruit GFX distro that’s pretty decent. The second is the drawing routine for that. I’ll work on it, see what I can do. It shouldn’t be TOO hard. I hope.

As Ashley pointed out in an earlier thread, the Adafruit library hooks into the print() function. If you examine the end of Adafruit_GFX.cpp, that’s all the text functions.

Yep - I played with that library when I bought one of the 32x32 panels from Sparkfun a couple of months ago. I’ve been able to do static text on my current home-built matrix. I just haven’t quite gotten scrolling text working the way I want yet. I’m sure I’ll get there before too long though.

And now that I’m coming up to speed on C++, I need to go back and review the Adafruit code again. Maybe I’ll understand it better this time around. :wink: