LEDS
Note: Setting the key allows you to change accounts (remember to save your old key somewhere!)
Note: Backup your current key first!
User:
LEDs Password

Usage

Add sets of equations using the "Add Equation" button.

Each set of equations contains an "h" equation, an "s" equation, and a "v" equation. Each equation corresponds to each part of the HSV color of the LED.

Each equation is run every frame for every LED on the led strip, which allows you to create a LED pattern by using the equations.

The equations look like normal math equations, for example, setting h = i + t and s = 255 and v = 90 will create a rainbow pattern across the led strip.

All numbers are integers and the values sent to the LEDs are mod 256 of the result of the equations. You can access two variables: i and t. i is the index of the LED and t is the current frame, which increments by 1 every frame.

I attempted to have expressions evaluated according to the order of operations, but I don't think I got it quite working, so I recommend using parenthesis if something doesn't seem right.

There are two functions that you can use. The first one is if([expr], [if not 0], [if 0]) , which should be self-explanatory. The other one is sin([value]), which computes the sin of a value, but a full cycle is 0-255 instead of 0-2pi.

The video is a live stream of my LED lights running whatever equations are written here. If too many people use this, it could get crazy. When you type in an equation, it is automatically sent to the LED strip.

This was a random project that I wanted to try. I'll probably set a password on it at some point, but I thought I'd let the whole world try it out first. It probably has a lot of bugs and I'm not planning to fix them all. I also wrote a blog post explaining how everything works.