This is mostly experimental code based from (c) Henner Zeller h.zeller@acm.org
This version works with a 16 x 32 LED matrix and displays an image sequence animation. Convert any .gif file to .ppm, then save in source directory to run. I used Gifmaker to split the files in a .gif as separate images, then used Gimp to convert each gif slice into a ppm. Make sure to rename each file consistently for the program to iterate through the images, for example "imagename-1.ppm"..."imagename-N.ppm", and so forth. I named mine "tmp-" with 18 images in the sequence. I'll change this up later to make it easier to load an entire file directory.
$ make
$ sudo ./led-matrix [name of ppm] [N number of files]
For this example: sudo ./led-matrix tmp- 18