Skip to content


Tweak the setting of the amazing ColorWaves and Pride FastLED animations interactively via a web UI.

Table of Contents

Background

ColorWavesWithPalettes and Pride2015 are brilliant animations for the FastLED library created by Mark Kriegsman. The code for both include a set of “magic numbers” or constants defined in the code. Slight changes in these numbers can cause drastic changes in the appearance of the animations. But changing them requires compiling and uploading the code. I wanted to learn more about the animations and code, and decided being able to interactively change them and immediately see the result would be beneficial.

Details

I used my esp8266-fastled-webserver project, which already provides a web interface over wi-fi for changing settings, such as brightness, pattern, palette, etc. I extracted all of the constants from the Pride2015 and ColorWaves code, and replaced them with variables that I exposed as fields via the REST interface. No changes were needed to the web app, since it dynamically displays editors for all of the fields.

I quickly realized that a way of saving, importing and exporting the settings would be beneficial. You can save them to a JSON file which you can load, share, etc.

Source Code

You can find the source code on GitHub: https://github.com/jasoncoon/esp8266-fastled-webserver

I’ve also started porting the code to branches shared specifically for builds and products of mine, such as the Fibonacci boards pictured above: