Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local event = require("event")
- local component = require("component")
- local term = require("term")
- local modem = component.modem
- modem.open(1)
- modem.broadcast(1, "nanomachines", "setResponsePort", 1)
- msg=""
- ex=true
- local function send(command, ...)
- component.modem.broadcast(1, "nanomachines", command, ...)
- end
- for J=1,19 do
- send("setInput", J, false)
- _,_,_,_,_,_,_,_=event.pull("modem_message")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement