Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("monitor_0")
- p = peripheral.wrap("back")
- os.loadAPI("/rom/apis/rednet")
- rednet.open("bottom")
- m.clear()
- local rfp1 = "reactor_fluid_port_14" -- Location Reactor Fluid Port
- local rfp2 = "reactor_fluid_port_8" -- Location Reactor Fluid Port
- local rfp3 = "reactor_fluid_port_9" -- Location Reactor Fluid Port
- local rfp4 = "reactor_fluid_port_10" -- Location Reactor Fluid Port
- local rfp5 = "reactor_fluid_port_11" -- Location Reactor Fluid Port
- local rfp6 = "reactor_fluid_port_12" -- Location Reactor Fluid Port
- local nr1 = "nuclear_reactor_1" -- Location Reactor Access Hatch
- local nr2 = "nuclear_reactor_2" -- Location Reactor Access Hatch
- local nr3 = "nuclear_reactor_3" -- Location Reactor Access Hatch
- local nr4 = "nuclear_reactor_4" -- Location Reactor Access Hatch
- local nr5 = "nuclear_reactor_5" -- Location Reactor Access Hatch
- local nr6 = "nuclear_reactor_6" -- Location Reactor Access Hatch
- local mfsu1 = "mfsu_0" -- Location MFSU1
- local mfsu2 = "mfsu_1" -- Location MFSU2
- local mfsu3 = "mfsu_2" -- Location MFSU3
- local mfsu4 = "mfsu_3" -- Location MFSU4
- local mfsu5 = "mfsu_4" -- Location MFSU5
- local mfsu6 = "mfsu_5" -- Location MFSU6
- local mfsu7 = "mfsu_6" -- Location MFSU7
- local mfsu8 = "mfsu_7" -- Location MFSU8
- local mfsu9 = "mfsu_8" -- Location MFSU9
- local IsActive = "PlaceHolder"
- --computers that can send wireless signals
- local rc1 = rednet.lookup("rctrl","rc1")
- local rc2 = rednet.lookup("rctrl","rc2")
- local rc3 = rednet.lookup("rctrl","rc3")
- local rc4 = rednet.lookup("rctrl","rc4")
- local rc5 = rednet.lookup("rctrl","rc5")
- local rc6 = rednet.lookup("rctrl","rc6")
- --computers that are under the reactors
- local rs1 = rednet.lookup("rctrl","rs1")
- local rs2 = rednet.lookup("rctrl","rs2")
- local rs3 = rednet.lookup("rctrl","rs3")
- local rs4 = rednet.lookup("rctrl","rs4")
- local rs5 = rednet.lookup("rctrl","rs5")
- local rs6 = rednet.lookup("rctrl","rs6")
- mfsu_1 = "mfsu_0" -- Location MFSU1
- mfsu_2 = "mfsu_1" -- Location MFSU2
- mfsu_3 = "mfsu_2" -- Location MFSU3
- mfsu_4 = "mfsu_3" -- Location MFSU4
- mfsu_5 = "mfsu_4" -- Location MFSU5
- mfsu_6 = "mfsu_5" -- Location MFSU6
- mfsu_7 = "mfsu_6" -- Location MFSU7
- mfsu_8 = "mfsu_7" -- Location MFSU8
- mfsu_9 = "mfsu_8" -- Location MFSU9
- R1OnOff = "Off"
- R2OnOff = "Off"
- R3OnOff = "Off"
- R4OnOff = "Off"
- R5OnOff = "Off"
- R6OnOff = "Off"
- mfsu1 = peripheral.wrap(mfsu_1)
- mfsu2 = peripheral.wrap(mfsu_2)
- mfsu3 = peripheral.wrap(mfsu_3)
- mfsu4 = peripheral.wrap(mfsu_4)
- mfsu5 = peripheral.wrap(mfsu_5)
- mfsu6 = peripheral.wrap(mfsu_6)
- mfsu7 = peripheral.wrap(mfsu_7)
- mfsu8 = peripheral.wrap(mfsu_8)
- mfsu9 = peripheral.wrap(mfsu_9)
- function mfsuAll()
- while true do
- mfsu1EUS = mfsu1.getEUStored()
- mfsu2EUS = mfsu2.getEUStored()
- mfsu3EUS = mfsu3.getEUStored()
- mfsu4EUS = mfsu4.getEUStored()
- mfsu5EUS = mfsu5.getEUStored()
- mfsu6EUS = mfsu6.getEUStored()
- mfsu7EUS = mfsu7.getEUStored()
- mfsu8EUS = mfsu8.getEUStored()
- mfsu9EUS = mfsu9.getEUStored()
- m.setCursorPos(45,15)
- m.write("Reactor group 1")
- m.setCursorPos(45,16)
- m.write("MFSU1: 40000000/"..mfsu1EUS)
- m.setCursorPos(45,17)
- m.write("MFSU2: 40000000/"..mfsu2EUS)
- m.setCursorPos(45,18)
- m.write("MFSU3: 40000000/"..mfsu3EUS)
- m.setCursorPos(45,19)
- m.write("Reactor group 2")
- m.setCursorPos(45,20)
- m.write("MFSU4: 40000000/"..mfsu4EUS)
- m.setCursorPos(45,21)
- m.write("MFSU5: 40000000/"..mfsu5EUS)
- m.setCursorPos(45,22)
- m.write("MFSU6: 40000000/"..mfsu6EUS)
- m.setCursorPos(45,23)
- m.write("Reactor group 3")
- m.setCursorPos(45,24)
- m.write("MFSU7: 40000000/"..mfsu7EUS)
- m.setCursorPos(45,25)
- m.write("MFSU8: 40000000/"..mfsu8EUS)
- m.setCursorPos(45,26)
- m.write("MFSU9: 40000000/"..mfsu9EUS)
- sleep(1)
- end
- end
- function LiquidTanksAll()
- tank1 = peripheral.wrap(rfp1)
- tank2 = peripheral.wrap(rfp2)
- tank3 = peripheral.wrap(rfp3)
- tank4 = peripheral.wrap(rfp4)
- tank5 = peripheral.wrap(rfp5)
- tank6 = peripheral.wrap(rfp6)
- EmptyCounter1 = 0
- EmptyCounter2 = 0
- EmptyCounter3 = 0
- EmptyCounter4 = 0
- EmptyCounter5 = 0
- EmptyCounter6 = 0
- while true do
- m.setCursorPos(45,1)
- tank1I = tank1.getTankInfo()
- tank2I = tank2.getTankInfo()
- tank3I = tank3.getTankInfo()
- tank4I = tank4.getTankInfo()
- tank5I = tank5.getTankInfo()
- tank6I = tank6.getTankInfo()
- -- begin Reactor 1
- if tank1I[1]["contents"] == nil then
- EmptyCounter1 = EmptyCounter1 + 1
- ic2c1ValueC = "0"
- else
- EmptyCounter1 = 0
- if tank1I[1]["contents"]["name"] == "ic2coolant" then
- ic2c1 = tank1I[1]
- ic2c1ValueC = ic2c1["contents"]["amount"]
- elseif tank1I[1]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc1 = tank1I[1]
- ic2hc1ValueC = ic2hc1["contents"]["amount"]
- else
- error("R1 Incorrect liquid in "..tank1I[1]["contents"]["name"])
- end
- if tank1I[2]["contents"] ~= nil then
- if tank1I[2]["contents"]["name"] == "ic2coolant" then
- ic2c1 = tank1I[2]
- ic2c1ValueC = ic2c1["contents"]["amount"]
- elseif tank1I[2]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc1 = tank1I[2]
- ic2hc1ValueC = ic2hc1["contents"]["amount"]
- else
- error("R1 Incorrect liquid in "..tank1I[1]["contents"]["name"])
- end
- else
- ic2hc1ValueC = "0"
- end
- x1 = ic2c1ValueC / 10000 * 100
- if x1 < 50 then
- m.setCursorPos(45,2)
- m.write("R1 warning!! Coolant level below :"..math.floor(x1).."% full.....")
- else
- m.setCursorPos(45,2)
- m.write("R1 Coolant level is :"..math.floor(x1).."% full")
- end
- y1 = ic2hc1ValueC / 10000 * 100
- if y1 > 50 then
- m.setCursorPos(45,3)
- m.write("R1 warning!! Hot Coolant level above :"..math.floor(y1).."% full.....")
- else
- m.setCursorPos(45,3)
- -- m.write("R1 Hot Coolant level is :"..math.floor(y1).."% full")
- m.write("R1 Hot Coolant level is :"..ic2hc1ValueC.." full.....")
- end
- -- sleep(0.5)
- end
- -- end Reactor 1
- -- begin Reactor 2
- if tank2I[1]["contents"] == nil then
- EmptyCounter2 = EmptyCounter2 + 1
- ic2c2ValueC = "0"
- else
- EmptyCounter2 = 0
- if tank2I[1]["contents"]["name"] == "ic2coolant" then
- ic2c2 = tank2I[1]
- ic2c2ValueC = ic2c2["contents"]["amount"]
- elseif tank2I[1]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc2 = tank2I[1]
- ic2hc2ValueC = ic2hc2["contents"]["amount"]
- else
- error("R2 Incorrect liquid in "..tank2I[1]["contents"]["name"])
- end
- if tank2I[2]["contents"] ~= nil then
- if tank2I[2]["contents"]["name"] == "ic2coolant" then
- ic2c2 = tank2I[2]
- ic2c2ValueC = ic2c2["contents"]["amount"]
- elseif tank2I[2]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc2 = tank2I[2]
- ic2hc2ValueC = ic2hc2["contents"]["amount"]
- else
- error("R2 Incorrect liquid in "..tank2I[1]["contents"]["name"])
- end
- else
- ic2hc2ValueC = "0"
- end
- x2 = ic2c2ValueC / 10000 * 100
- if x2 < 50 then
- m.setCursorPos(45,4)
- m.write("R2 warning!! Coolant level below :"..math.floor(x2).."% full.....")
- else
- m.setCursorPos(45,4)
- m.write("R2 Coolant level is :"..math.floor(x2).."% full")
- end
- y2 = ic2hc2ValueC / 10000 * 100
- if y2 > 50 then
- m.setCursorPos(45,5)
- m.write("R2 warning!! Hot Coolant level above :"..math.floor(y2).."% full.....")
- else
- m.setCursorPos(45,5)
- -- m.write("R2 Hot Coolant level is :"..math.floor(y2).."% full")
- m.write("R2 Hot Coolant level is :"..ic2hc2ValueC.." full.....")
- end
- -- sleep(0.5)
- end
- -- end Reactor 2
- -- begin Reactor 3
- if tank3I[1]["contents"] == nil then
- EmptyCounter3 = EmptyCounter3 + 1
- ic2c3ValueC = "0"
- else
- EmptyCounter3 = 0
- if tank3I[1]["contents"]["name"] == "ic2coolant" then
- ic2c3 = tank3I[1]
- ic2c3ValueC = ic2c3["contents"]["amount"]
- elseif tank3I[1]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc3 = tank3I[1]
- ic2hc3ValueC = ic2hc3["contents"]["amount"]
- else
- error("R3 Incorrect liquid in "..tank3I[1]["contents"]["name"])
- end
- if tank3I[2]["contents"] ~= nil then
- if tank3I[2]["contents"]["name"] == "ic2coolant" then
- ic2c3 = tank3I[2]
- ic2c3ValueC = ic2c3["contents"]["amount"]
- elseif tank3I[2]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc3 = tank3I[2]
- ic2hc3ValueC = ic2hc3["contents"]["amount"]
- else
- error("R3 Incorrect liquid in "..tank3I[1]["contents"]["name"])
- end
- else
- ic2hc3ValueC = "0"
- end
- x3 = ic2c3ValueC / 10000 * 100
- if x3 < 50 then
- m.setCursorPos(45,6)
- m.write("R3 warning!! Coolant level below :"..math.floor(x3).."% full.....")
- else
- m.setCursorPos(45,6)
- m.write("R3 Coolant level is :"..math.floor(x3).."% full")
- end
- y3 = ic2hc3ValueC / 10000 * 100
- if y3 > 50 then
- m.setCursorPos(45,7)
- m.write("R3 warning!! Hot Coolant level above :"..math.floor(y3).."% full.....")
- else
- m.setCursorPos(45,7)
- -- m.write("R3 Hot Coolant level is :"..math.floor(y3).."% full")
- m.write("R3 Hot Coolant level is :"..ic2hc3ValueC.." full.....")
- end
- -- sleep(0.5)
- end
- -- end Reactor 3
- -- begin Reactor 4
- if tank4I[1]["contents"] == nil then
- EmptyCounter4 = EmptyCounter4 + 1
- ic2c4ValueC = "0"
- else
- EmptyCounter4 = 0
- if tank4I[1]["contents"]["name"] == "ic2coolant" then
- ic2c4 = tank4I[1]
- ic2c4ValueC = ic2c4["contents"]["amount"]
- elseif tank4I[1]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc4 = tank4I[1]
- ic2hc4ValueC = ic2hc4["contents"]["amount"]
- else
- error("R4 Incorrect liquid in "..tank4I[1]["contents"]["name"])
- end
- if tank4I[2]["contents"] ~= nil then
- if tank4I[2]["contents"]["name"] == "ic2coolant" then
- ic2c4 = tank4I[2]
- ic2c4ValueC = ic2c4["contents"]["amount"]
- elseif tank4I[2]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc4 = tank4I[2]
- ic2hc4ValueC = ic2hc4["contents"]["amount"]
- else
- error("R4 Incorrect liquid in "..tank4I[1]["contents"]["name"])
- end
- else
- ic2hc4ValueC = "0"
- end
- x4 = ic2c4ValueC / 10000 * 100
- if x4 < 50 then
- m.setCursorPos(45,8)
- m.write("R4 warning!! Coolant level below :"..math.floor(x4).."% full.....")
- else
- m.setCursorPos(45,8)
- m.write("R4 Coolant level is :"..math.floor(x4).."% full")
- end
- y4 = ic2hc4ValueC / 10000 * 100
- if y4 > 50 then
- m.setCursorPos(45,9)
- m.write("R4 warning!! Hot Coolant level above :"..math.floor(y4).."% full.....")
- else
- m.setCursorPos(45,9)
- -- m.write("R4 Hot Coolant level is :"..math.floor(y4).."% full")
- m.write("R4 Hot Coolant level is :"..ic2hc4ValueC.." full.....")
- end
- -- sleep(0.5)
- end
- -- end Reactor 4
- -- begin Reactor 5
- if tank5I[1]["contents"] == nil then
- EmptyCounter5 = EmptyCounter5 + 1
- ic2c5ValueC = "0"
- elseif tank5I[2] == nil then
- EmptyCounter5 = EmptyCounter5 + 1
- else
- EmptyCounter5 = 0
- if tank5I[1]["contents"]["name"] == "ic2coolant" then
- ic2c5 = tank5I[1]
- ic2c5ValueC = ic2c5["contents"]["amount"]
- elseif tank5I[1]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc5 = tank5I[1]
- ic2hc5ValueC = ic2hc5["contents"]["amount"]
- else
- error("R5 Incorrect liquid in "..tank5I[1]["contents"]["name"])
- end
- if tank5I[2]["contents"] ~= nil then
- if tank5I[2]["contents"]["name"] == "ic2coolant" then
- ic2c5 = tank5I[2]
- ic2c5ValueC = ic2c5["contents"]["amount"]
- elseif tank5I[2]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc5 = tank5I[2]
- ic2hc5ValueC = ic2hc5["contents"]["amount"]
- else
- error("R5 Incorrect liquid in "..tank5I[1]["contents"]["name"])
- end
- else
- ic2hc5ValueC = "0"
- end
- x5 = ic2c5ValueC / 10000 * 100
- if x5 < 50 then
- m.setCursorPos(45,10)
- m.write("R5 warning!! Coolant level below :"..math.floor(x5).."% full.....")
- else
- m.setCursorPos(45,10)
- m.write("R5 Coolant level is :"..math.floor(x5).."% full")
- end
- y5 = ic2hc5ValueC / 10000 * 100
- if y5 > 50 then
- m.setCursorPos(45,11)
- m.write("R5 warning!! Hot Coolant level above :"..math.floor(y5).."% full.....")
- else
- m.setCursorPos(45,11)
- -- m.write("R5 Hot Coolant level is :"..math.floor(y5).."% full")
- m.write("R5 Hot Coolant level is :"..ic2hc5ValueC.." full.....")
- end
- -- sleep(0.5)
- end
- -- end Reactor 5
- -- begin Reactor 6
- if tank6I[1]["contents"] == nil then
- EmptyCounter6 = EmptyCounter6 + 1
- ic2c6ValueC = "0"
- elseif tank6I[2] == nil then
- EmptyCounter6 = EmptyCounter6 + 1
- else
- EmptyCounter6 = 0
- if tank6I[1]["contents"]["name"] == "ic2coolant" then
- ic2c6 = tank6I[1]
- ic2c6ValueC = ic2c6["contents"]["amount"]
- elseif tank6I[1]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc6 = tank6I[1]
- ic2hc6ValueC = ic2hc6["contents"]["amount"]
- else
- error("R6 Incorrect liquid in "..tank6I[1]["contents"]["name"])
- end
- if tank6I[2]["contents"] ~= nil then
- if tank6I[2]["contents"]["name"] == "ic2coolant" then
- ic2c6 = tank6I[2]
- ic2c6ValueC = ic2c6["contents"]["amount"]
- elseif tank6I[2]["contents"]["name"] == "ic2hotcoolant" then
- ic2hc6 = tank6I[2]
- ic2hc6ValueC = ic2hc6["contents"]["amount"]
- else
- error("R6 Incorrect liquid in "..tank6I[1]["contents"]["name"])
- end
- else
- ic2hc6ValueC = "0"
- end
- x6 = ic2c6ValueC / 10000 * 100
- if x6 < 50 then
- m.setCursorPos(45,12)
- m.write("R6 warning!! Coolant level below :"..math.floor(x6).."% full.....")
- else
- m.setCursorPos(45,12)
- m.write("R6 Coolant level is :"..math.floor(x6).."% full")
- end
- y6 = ic2hc6ValueC / 10000 * 100
- if y6 > 50 then
- m.setCursorPos(45,13)
- m.write("R6 warning!! Hot Coolant level above :"..math.floor(61).."% full.....")
- else
- m.setCursorPos(45,13)
- -- m.write("R6 Hot Coolant level is :"..math.floor(y6).."% full")
- m.write("R6 Hot Coolant level is :"..ic2hc6ValueC.." full.....")
- end
- -- sleep(0.5)
- end
- sleep(1)
- -- end Reactor 6
- end
- end
- function fillTable()
- button.setTable("Reactor1",Reactor1,2,15,2,4)
- button.setTable("Reactor2",Reactor2,2,15,6,8)
- button.setTable("Reactor3",Reactor3,2,15,10,12)
- button.setTable("Reactor4",Reactor4,2,15,14,16)
- button.setTable("Reactor5",Reactor5,2,15,18,20)
- button.setTable("Reactor6",Reactor6,2,15,22,24)
- button.setTable("Turn Off ALL",TurnOffALL,2,15,26,28)
- button.screen()
- end
- function listen()
- while true do
- local senderIdL1, messageL1, protocolL1 = rednet.receive("rc1",3)
- local senderIdL2, messageL2, protocolL2 = rednet.receive("rc2",3)
- local senderIdL3, messageL3, protocolL3 = rednet.receive("rc3",3)
- local senderIdL4, messageL4, protocolL4 = rednet.receive("rc4",3)
- local senderIdL5, messageL5, protocolL5 = rednet.receive("rc5",3)
- local senderIdL6, messageL6, protocolL6 = rednet.receive("rc6",3)
- if messageL1 ~= nil then
- print("message from 1:"..messageL1)
- R1OnOff = messageL1
- else
- print("Got no message from 1")
- end
- if messageL2 ~= nil then
- print("message from 2:"..messageL2)
- R2OnOff = messageL2
- else
- print("Got no message from 2")
- end
- if messageL3 ~= nil then
- print("message from 3:"..messageL3)
- R3OnOff = messageL3
- else
- print("Got no message from 3")
- end
- if messageL4 ~= nil then
- print("message from 4:"..messageL4)
- R4OnOff = messageL4
- else
- print("Got no message from 4")
- end
- if messageL5 ~= nil then
- print("message from 5:"..messageL5)
- R5OnOff = messageL5
- else
- print("Got no message from 5")
- end
- if messageL6 ~= nil then
- print("message from 6:"..messageL6)
- R6OnOff = messageL6
- else
- print("Got no message from 6")
- end
- sleep(0,5)
- end
- end
- function urs()
- --Update Reactor status
- -- listenx = 1
- while true do
- -- print("R1OnOff:"..R1OnOff)
- -- print("R2OnOff:"..R2OnOff)
- -- print("R3OnOff:"..R3OnOff)
- -- print("R4OnOff:"..R4OnOff)
- -- print("R5OnOff:"..R5OnOff)
- -- print("R6OnOff:"..R6OnOff)
- if R1OnOff == "Off" then
- m.setBackgroundColor(colors.green)
- m.setCursorPos(18,3) m.write("Off")
- m.setBackgroundColor(colors.black)
- else
- m.setBackgroundColor(colors.red)
- m.setCursorPos(18,3) m.write("On ")
- m.setBackgroundColor(colors.black)
- end
- if R2OnOff == "Off" then
- m.setBackgroundColor(colors.green)
- m.setCursorPos(18,7) m.write("Off")
- m.setBackgroundColor(colors.black)
- else
- m.setBackgroundColor(colors.red)
- m.setCursorPos(18,7) m.write("On ")
- m.setBackgroundColor(colors.black)
- end
- if R3OnOff == "Off" then
- m.setBackgroundColor(colors.green)
- m.setCursorPos(18,11) m.write("Off")
- m.setBackgroundColor(colors.black)
- else
- m.setBackgroundColor(colors.red)
- m.setCursorPos(18,11) m.write("On ")
- m.setBackgroundColor(colors.black)
- end
- if R4OnOff == "Off" then
- m.setBackgroundColor(colors.green)
- m.setCursorPos(18,15) m.write("Off")
- m.setBackgroundColor(colors.black)
- else
- m.setBackgroundColor(colors.red)
- m.setCursorPos(18,15) m.write("On ")
- m.setBackgroundColor(colors.black)
- end
- if R5OnOff == "Off" then
- m.setBackgroundColor(colors.green)
- m.setCursorPos(18,19) m.write("Off")
- m.setBackgroundColor(colors.black)
- else
- m.setBackgroundColor(colors.red)
- m.setCursorPos(18,19) m.write("On ")
- m.setBackgroundColor(colors.black)
- end
- if R6OnOff == "Off" then
- m.setBackgroundColor(colors.green)
- m.setCursorPos(18,23) m.write("Off")
- m.setBackgroundColor(colors.black)
- else
- m.setBackgroundColor(colors.red)
- m.setCursorPos(18,23) m.write("On ")
- m.setBackgroundColor(colors.black)
- end
- sleep(0,5)
- -- listenx = listenx + 1
- end
- end
- function R1On()
- print("Button 1 doet niets")
- end
- function R2On()
- print("Button 2 doet niets")
- end
- function R3On()
- print("Button 3 doet niets")
- end
- function R4On()
- print("Button 4 doet niets")
- end
- function R5On()
- print("Button 5 doet niets")
- end
- function R6On()
- print("Button 6 doet niets")
- end
- function getClick()
- while true do
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x, y)
- end
- end
- function pulse()
- redstone.setOutput("back", true)
- sleep(0,5)
- redstone.setOutput("back", false)
- end
- function Reactor1()
- rednet.send(rc1,"TOR1","rctrl")
- button.flash("Reactor1")
- end
- function Reactor2()
- rednet.send(rc2,"TOR2","rctrl")
- button.flash("Reactor2")
- end
- function Reactor3()
- rednet.send(rc3,"TOR3","rctrl")
- button.flash("Reactor3")
- end
- function Reactor4()
- rednet.send(rc4,"TOR4","rctrl")
- button.flash("Reactor4")
- end
- function Reactor5()
- rednet.send(rc5,"TOR5","rctrl")
- button.flash("Reactor5")
- end
- function Reactor6()
- rednet.send(rc6,"TOR6","rctrl")
- button.flash("Reactor6")
- end
- function TurnOffALL()
- Reactor1()
- Reactor2()
- Reactor3()
- Reactor4()
- Reactor5()
- Reactor6()
- end
- fillTable()
- m.setCursorPos(45,14)
- m.write("------------------------------------------------------------")
- x1=0
- while true do
- -- x1=x1 + 1
- parallel.waitForAny(urs, listen, getClick , LiquidTanksAll, mfsuAll)
- print("sleep:"..x1)
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement