added status driver

This commit is contained in:
2025-06-14 14:16:32 -04:00
parent 660a5ae85a
commit 28203cac8b
2 changed files with 26 additions and 0 deletions

View File

@@ -3,11 +3,13 @@ local reactor = peripheral.find("fissionReactorLogicAdapter")
local monitor = peripheral.find("monitor")
local tempDriver = kernel.addDriver("temperature_driver")
local coolantDriver = kernel.addDriver("coolant_driver")
local statusDriver = kernel.addDriver("status_driver")
local function runMonitors()
while true do
tempDriver.watch(reactor, monitor)
coolantDriver.watch(reactor, monitor)
statusDriver.watch(reactor, monitor)
end
end
@@ -18,6 +20,7 @@ local function runDisplay()
monitor.setCursorPos(1, 1)
local drivers = {
{ Label = "Status", driver = statusDriver },
{ Label = "Temperature", driver = tempDriver },
{ Label = "Coolant", driver = coolantDriver },
}