refactor: consolidate temperature reporting into temperature_driver and remove temperature_monitor

This commit is contained in:
2025-06-14 12:47:30 -04:00
parent dc85446d47
commit cd5815b77c
3 changed files with 12 additions and 3 deletions

View File

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