added status driver
This commit is contained in:
3
main.lua
3
main.lua
@@ -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 },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user