This commit is contained in:
2025-06-15 16:23:13 -04:00
parent dcb75ee52c
commit ead0e6379e
9 changed files with 118 additions and 108 deletions

View File

@@ -22,13 +22,8 @@ local function checkTemperature()
end
end
-- local function color()
-- local temperature = getValue()
-- return colors.black
-- end
local function watch()
while true do
print("Temperature: " .. getValue())
checkTemperature()
@@ -37,18 +32,19 @@ local function watch()
end
local function startUp()
end
local function shutdown()
end
-- local function watch()
-- checkTemperature()
-- end
local function report()
local value = getValue()
local color = colors.black
monitor.setBackgroundColor(color)
monitor.clearLine()
setNewLine()
monitor.write("Temperature: " .. value .. "F")
end
return { report = report, watch = watch }
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown }