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

@@ -8,19 +8,6 @@ local function getValue()
return reactor.getBurnRate() or init
end
local function color()
local value = getValue()
return colors.black
end
local function watch()
while true do
sleep(0.05) -- Update every tenth second
end
end
local function stepUp()
local value = getValue()
@@ -49,17 +36,22 @@ local function stepDown()
reactor.setBurnRate(value - rateStep)
end
end
local function startUp()
end
local function shutdown()
end
local function watch()
print("Setting Default Burn Rate to: " .. init)
reactor.setBurnRate(init)
end
local function report()
local color = color()
local color = colors.black
monitor.setBackgroundColor(color)
value = getValue()
monitor.clearLine()
setNewLine()
monitor.write("Burn Rate: " .. value)
end
return { report = report, watch = watch, stepUp = stepUp, stepDown = stepDown, slowStepDown = slowStepDown, slowStepUp = slowStepUp }
return { report = report, watch = watch, stepUp = stepUp, stepDown = stepDown, slowStepDown = slowStepDown, slowStepUp = slowStepUp, startUp = startUp, shutdown = shutdown }