From e03ecf97b68507780ea5a5ad95f3646360c6a70e Mon Sep 17 00:00:00 2001 From: ollo Date: Wed, 10 Apr 2019 21:23:15 +0200 Subject: [PATCH] Added colored output, if the website was requested --- webserver.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/webserver.lua b/webserver.lua index 261742f..1575109 100644 --- a/webserver.lua +++ b/webserver.lua @@ -139,13 +139,9 @@ function startWebServer() --here is code for handling http request from a web-browser collectgarbage() -- Stop all - tmr.stop(0) - tmr.stop(1) - tmr.stop(2) - tmr.stop(3) - tmr.stop(4) - tmr.stop(5) - + for i=0,5 do tmr.stop(i) end + + ws2812.write(string.char(0,0,0):rep(56) .. color:rep(2) .. string.char(0,0,0):rep(4) .. color:rep(2) .. string.char(0,0,0):rep(48)) -- Start Time after 1 minute tmr.alarm(6, 60000, 0 ,function() -- Start the time Thread