From f5c3064773f368ce164d338c278861b4be0170e3 Mon Sep 17 00:00:00 2001 From: ollo Date: Wed, 1 Mar 2017 19:53:55 +0100 Subject: [PATCH] Print WLAN, when searching wifi --- main.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index ca7ee46..1eb98a9 100644 --- a/main.lua +++ b/main.lua @@ -88,7 +88,11 @@ function normalOperation() if wifi.sta.status() ~= 5 then print(connect_counter .. "/60 Connecting to AP...") if (connect_counter % 2 == 0) then - ws2812.write(string.char((connect_counter % 6)*20,(connect_counter % 5)*20,(connect_counter % 3)*20):rep(114)) + local wlanColor=string.char((connect_counter % 6)*20,(connect_counter % 5)*20,(connect_counter % 3)*20) + local space=string.char(0,0,0) + local buf=space:rep(6) .. wlanColor .. space:rep(4) + buf= buf .. space:rep(3) .. wlanColor:rep(3) + ws2812.write(buf) else ws2812.write(string.char(0,0,0):rep(114)) end