Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not fs.exists("/Fsociety/data/side") then
- print("ERROR NO SIDE FILE")
- os.reboot()
- end
- sideFile = fs.open("/Fsociety/data/side","r")
- modemSide = sideFile.readLine()
- monitorSide = sideFile.readLine()
- sideFile.close()
- --------------------------------------------
- -- --
- -- Display System from --
- -- Security System V0.1 --
- -- By Fsociety --
- -- --
- --------------------------------------------
- local mon = peripheral.wrap(monitorSide)
- local m = peripheral.wrap(modemSide)
- m.open(100)
- mon.clear()
- while true do
- local event , param1 , param2 , param3 , param4 = os.pullEvent()
- if event == "modem_message" then
- mon.clear()
- local w, h = mon.getSize()
- mon.setCursorPos(1,h/2)
- mon.write(param4)
- end
- sleep(0.1)
- end
Add Comment
Please, Sign In to add comment