This commit is contained in:
2025-06-14 12:52:53 -04:00
parent cd5815b77c
commit c39daa5508
3 changed files with 23 additions and 6 deletions

View File

@@ -1,15 +1,19 @@
local function run()
local kernel = require("kernel")
local tempDriver = kernel.addDriver("temperature_driver")
local coolantDriver = kernel.addDriver("coolant_driver")
local reactor = peripheral.find("fissionReactorLogicAdapter")
local monitor = peripheral.find("monitor")
while true do
monitor.clear()
monitor.setCursorPos(1,1)
tempDriver.watch(reactor, monitor)
coolantDriver.watch(reactor, monitor)
local data = {
{ Label = "Temperature", value = tempDriver.report(reactor)},
{ Label = "Pressure", value = "101kPa" },
{ Label = "Coolant", value = coolantDriver.report(reactor) },
{ Label = "Humidity", value = "45%" }
}