summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2016-11-17 22:29:06 -0500
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2016-11-17 22:29:06 -0500
commitb305e521891b8622ebbecc355831e9f8e3a79e9b (patch)
treebd725acd454077687f20db86a6db1bc04f2a1022
parentf7afe20d982fd89569fa927d1404aa1b787f33d6 (diff)
documentationHEADmaster
-rw-r--r--strip/strip.ino1
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);