Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back") --Set Position of the modem on the computer
- nir = peripheral.wrap("bottom") --Set position of the NIR on the computer
- temp = "Querying"
- reactor = "querying"
- reactorCom = 148 -- enter ID of Computer attached to the Reactor
- console = 146 -- Enter ID of the Computer attached to the Touch Screen
- while true do
- dud1, dud2, card, info = nir.get(1)
- for system, status in pairs(info) do
- rednet.send(console, system)
- ping = rednet.receive()
- if ping == console then
- status = tostring(status)
- term.clear()
- term.setCursorPos(1,1)
- rednet.send(console, status)
- end
- if system == "heat" then
- rednet.send(reactorCom, status)
- end
- end
- -- dud1, dud2, card, info = nir.get(2)
- -- for system, status in pairs(info) do
- -- rednet.send(console, system)
- -- ping = rednet.receive()
- -- if ping == console then
- -- status = tostring(status)
- -- rednet.send(console, status)
- -- end
- -- end
- os.sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement