From b305e521891b8622ebbecc355831e9f8e3a79e9b Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 17 Nov 2016 22:29:06 -0500 Subject: documentation --- strip/strip.ino | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3