18 lines
354 B
Lua
18 lines
354 B
Lua
|
|
modem = peripheral.wrap("right")
|
|
environment = peripheral.wrap("left")
|
|
|
|
|
|
local function runMonitor()
|
|
while true do
|
|
print("Running Environment Monitor")
|
|
local rads = environment.getRadiationRaw()
|
|
print("Radiation Level: " .. rads)
|
|
end
|
|
end
|
|
|
|
local function run()
|
|
parallel.waitForAll(runMonitor)
|
|
end
|
|
|
|
return { run = run} |