Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local msg1 = "System has started and ready for input"
- local mon = peripheral.wrap("right")
- term.redirect(mon)
- term.clear()
- term.setCursorPos(1, 1)
- sleep(5)
- print(msg1)
- local modem = peripheral.wrap("top")
- modem.open(1)
- modem.open(2)
- print("Ready to receive messages from turtle ")
- while true do
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- term.clear()
- term.setCursorPos(1, 1)
- print(message)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement