Added colored output, if the website was requested

This commit is contained in:
ollo 2019-04-10 21:23:15 +02:00
parent c3b94e0ade
commit e03ecf97b6

View File

@ -139,13 +139,9 @@ function startWebServer()
--here is code for handling http request from a web-browser --here is code for handling http request from a web-browser
collectgarbage() collectgarbage()
-- Stop all -- Stop all
tmr.stop(0) for i=0,5 do tmr.stop(i) end
tmr.stop(1)
tmr.stop(2) 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))
tmr.stop(3)
tmr.stop(4)
tmr.stop(5)
-- Start Time after 1 minute -- Start Time after 1 minute
tmr.alarm(6, 60000, 0 ,function() tmr.alarm(6, 60000, 0 ,function()
-- Start the time Thread -- Start the time Thread