This commit is contained in:
2025-06-14 17:36:55 -04:00
parent 78f224581f
commit 48c52e76cf
6 changed files with 51 additions and 35 deletions

View File

@@ -13,13 +13,19 @@ local function color()
return colors.black
end
-- local function watch()
-- while true do
-- print("Temperature: " .. getValue())
-- checkTemperature()
-- sleep(0.05) -- Update every tenth second
-- end
-- end
local function watch()
while true do
print("Temperature: " .. getValue())
checkTemperature()
sleep(0.05) -- Update every tenth second
end
checkTemperature()
end
function checkTemperature()
local temperature = getValue()
local upperThreshold = max - 20