From b5974411920fd4ac17387d4ddac1a0fd482e29fc Mon Sep 17 00:00:00 2001 From: ollo Date: Fri, 27 Oct 2017 18:05:53 +0200 Subject: [PATCH] Boot sequence from both ends --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 370e0c8..74d28a2 100644 --- a/init.lua +++ b/init.lua @@ -2,12 +2,12 @@ uart.setup(0, 115200, 8, 0, 1, 1 ) print("Autostart in 5 seconds...") ws2812.init() -- WS2812 LEDs initialized on GPIO2 - +MAXLEDS=110 counter1=0 ws2812.write(string.char(0,0,0):rep(114)) tmr.alarm(2, 85, 1, function() counter1=counter1+1 - ws2812.write(string.char(128,0,0):rep(counter1)) + ws2812.write(string.char(128,0,0):rep(counter1) .. string.char(0,0,0):rep(MAXLEDS - (counter1*2)) .. string.char(0,0,64):rep(counter1)) end) local blacklistfile="init.lua config.lua config.lua.new"