LED Matrix Software

I wrote two programs that run on my LED matrix. They have different approaches and different aims. This post describes the one of them. 

The app offers a web interface where users can write simple programs that are then compiled and started instantly from the website. The concept is similar to Shadertoy, where you write C-like shader code in a browser window and instantly see it run. The code of for this project is on my github and it’s in a state where you should be able to run it fairly easily, if your hardware is similar. The github page has installation instructions and some documentation on the available functions for user apps.

The backend for the webapp is written in Python, using flask. The user apps are written in C++. I first tried to use Python for this as well, but it wasn’t fast enough. Just iterating through a 256 color list already impacts the framerate. The C++ code is compiled into a shared object library file. The library is loaded into the python app using the python module ctypes. The client is written in Javascript, using codemirror to edit code and bootstrap for the UI.

There is a gif recording feature that creates live recordings of the apps you write:

Leave a Reply

Your email address will not be published. Required fields are marked *