diff options
Diffstat (limited to 'strip/strip.ino')
-rw-r--r-- | strip/strip.ino | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/strip/strip.ino b/strip/strip.ino index ce9edf8..7e0c395 100644 --- a/strip/strip.ino +++ b/strip/strip.ino @@ -18,6 +18,7 @@ int32_t g = 0; // Gets the intensity for LED `l`. // s is a step between 0 and 1000. // l is the led number, between 0 and NUM_LEDS. +// num_pixels is the width of the pixels to light up. float grad(int s, int l, float num_pixels) { float scaled = s * 16.0 / 1000; float distance = abs(scaled - l); |