From 070d5de729a94e6b101cdb393be25db4a274a693 Mon Sep 17 00:00:00 2001 From: Ollo Date: Sat, 20 Mar 2021 15:49:54 +0100 Subject: [PATCH] Show IP if connected to Wifi --- main.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 041c85a..e9caf7a 100644 --- a/main.lua +++ b/main.lua @@ -162,7 +162,12 @@ function normalOperation() connect_counter=nil print('IP: ',wifi.sta.getip(), " heap: ", node.heap()) rgbBuffer:fill(0,0,0) -- clear all LEDs - rgbBuffer:set(13, color) + rgbBuffer:set(13, color) -- I + if ((inv46 ~= nil) and (inv46 == "on")) then + rgbBuffer:set(45, color) -- P + else + rgbBuffer:set(55, color) -- P + end ws2812.write(rgbBuffer) mlt:start() end