Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- net = peripheral.find("modem")
- if net == nil then print("brakuje modemu!") end
- me = peripheral.find("neuralInterface")
- if me == nil then me = peripheral.find("plethora:scanner") elseif me == nil then print("brakuje skanera!") end
- port = 420
- print("Wszystko ok! \nport:" ..tostring(port))
- i = 0
- while net ~= nil and me ~= nil do
- net.transmit(port, port,me.scan())
- term.clear()
- term.setCursorPos(1,1)
- write(tostring(i) .." packets send.")
- i = i + 1
- sleep(0.05)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement