From 65a22e1c8ecd0f87d9f91967417fcc885431a682 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Fri, 17 Aug 2018 17:13:34 -0400 Subject: [PATCH] drop support for "off_multi" (just use "clear") renamed "allon_multi" to "allon" --- README.md | 4 ++-- init.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 83370fc..5d4651a 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,8 @@ If a string is prefixed with character code 255, it is treated as UTF-8 and pass The panels also respond to these control messages: -* "off_multi" or "clear" turns all panels in a lineup or wall off - essentially a "clear screen" command. -* "allon_multi" turns on all LEDs of all panels in a lineup/wall (by filling them with char #144, i.e. the reverse of "clear"). +* "clear" turns all panels in a lineup or wall off - essentially a "clear screen" command. +* "allon" fills all panels in a lineup/wall with char(144), i.e. the reverse of "clear". * "start_scroll" starts the automatic scrolling function, repeatedly moving the last displayed message to the left one character space each time the scroll timer runs out (and automatically restarting it, natch). The scroll action will spread across the line, and down a multi-line wall (just set a new, different channel on the first row you want to exclude), and will continue until "stop_scroll" or any displayable message is received. * "stop_scroll" does just what it says - it stops the auto-scroll timer. As it advances through the message, the scroll code will search through the message for a printable character, on each scroll step, basically stripping-out color code, and using just the last one before the new start position. This is done in order to keep a constant visible speed (the text will still be colored properly though). * "scroll_speed" followed by a decimal number (in the string, not a byte value) sets the time between scroll steps. Minimum 0.5s, maximum 5s. diff --git a/init.lua b/init.lua index b27f685..fdfad4a 100644 --- a/init.lua +++ b/init.lua @@ -196,13 +196,13 @@ local on_digiline_receive_string = function(pos, node, channel, msg) if setchan ~= channel then return end if msg and msg ~= "" and type(msg) == "string" then if string.len(msg) > 1 then - if msg == "off_multi" or msg == "clear" then + if msg == "clear" then led_marquee.set_timer(pos, 0) msg = string.rep(" ", 1024) meta:set_string("last_msg", msg) led_marquee.display_msg(pos, channel, msg) meta:set_int("index", 1) - elseif msg == "allon_multi" then + elseif msg == "allon" then led_marquee.set_timer(pos, 0) msg = string.rep(string.char(144), 1024) meta:set_string("last_msg", msg)