aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-03-07 14:11:26 +0100
committercbdev <cb@cbcdn.com>2020-03-07 14:11:26 +0100
commitdde2cca435b2c314a08024825b1daffa6437b947 (patch)
treefcf86abcc4edde187c913bb28b072e5701dfdf8f
parent413ff0c6eb83fc603f96f870769e50c6234bd171 (diff)
downloadmidimonster-dde2cca435b2c314a08024825b1daffa6437b947.tar.gz
midimonster-dde2cca435b2c314a08024825b1daffa6437b947.tar.bz2
midimonster-dde2cca435b2c314a08024825b1daffa6437b947.zip
Update interval() documentation
-rw-r--r--backends/lua.md2
-rw-r--r--backends/openpixelcontrol.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/backends/lua.md b/backends/lua.md
index ce82a4d..0c592b7 100644
--- a/backends/lua.md
+++ b/backends/lua.md
@@ -13,7 +13,7 @@ The following functions are provided within the Lua interpreter for interaction
| Function | Usage example | Description |
|-------------------------------|-------------------------------|---------------------------------------|
| `output(string, number)` | `output("foo", 0.75)` | Output a value event to a channel |
-| `interval(function, number)` | `interval(update, 100)` | Register a function to be called periodically. Intervals are milliseconds (rounded to the nearest 10 ms) |
+| `interval(function, number)` | `interval(update, 100)` | Register a function to be called periodically. Intervals are milliseconds (rounded to the nearest 10 ms). Calling `interval` on a Lua function multiple times updates the interval. Specifying `0` as interval stops periodic calls to the function |
| `input_value(string)` | `input_value("foo")` | Get the last input value on a channel |
| `output_value(string)` | `output_value("bar")` | Get the last output value on a channel |
| `input_channel()` | `print(input_channel())` | Returns the name of the input channel whose handler function is currently running or `nil` if in an `interval`'ed function (or the initial parse step) |
diff --git a/backends/openpixelcontrol.c b/backends/openpixelcontrol.c
index b5885b0..168e077 100644
--- a/backends/openpixelcontrol.c
+++ b/backends/openpixelcontrol.c
@@ -1,5 +1,4 @@
#define BACKEND_NAME "openpixelcontrol"
-#define DEBUG
#include <string.h>