adafruit / Adafruit-WS2801-Library

Arduino library for controlling strips/pixels using WS2801 driver chips
http://www.adafruit.com/products/322
187 stars 72 forks source link

Added basic methods to treat string as 2 dimensional RGB display #7

Closed dkavanagh closed 11 years ago

dkavanagh commented 11 years ago

I added minimal code in the library, and a test (gridtest) to demonstrate usage. This code (per comments in the code) is made to address a strand of lights that has been snaked back and forth, row by row, into a grid configuration.

video here: http://youtu.be/BhrotFT-6Gc

PaintYourDragon commented 11 years ago

Cool stuff. Thanks!

dkavanagh commented 11 years ago

Thanks. I was thinking of building a look-up table to remove the calculations for each "setPixelColor" call with x.y coords. I'm also porting "game of life". I'll at least submit the performance improvement. Can do the game of life as a sample code if you like.