Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.find("monitor")
- local modem = peripheral.find("modem", rednet.open) -- doing it like this finds all modem peripherals and then opens rednet on them
- --- MAIN
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.setTextScale(0.5)
- monitor.write("Hello, ID: " .. os.computerID()) --the id of the computer
- rednet.send(3, "Hello from rednet!")
- function update()
- end
- while true do
- sleep(0.5)
- --update()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement