Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function c()
- term.clear()
- term.setCursorPos(1,1)
- end
- c()
- print("Welcome to TRC 1.0 - Turtle Remote Control - Computer")
- print("------------------------------------------")
- print("This is a Rednet Works program")
- print("------------------------------")
- print("Usages")
- print("------")
- print("W = Front")
- print("S = Back")
- print("A = Left")
- print("D = Right")
- print("Q = Up")
- print("E = Down")
- print("--------")
- print("TRC started")
- print("-----------")
- write("Enter the modem side: ")
- mSide = read()
- write("Enter the turtle IDentification: ")
- tId = tonumber(read())
- print("---------------------------------")
- print("Please, run the Receiver program on the turtle")
- print("The default name is: TRC-t")
- print("When you runned the program, control your turtle")
- print("(CTRL-T to terminate)")
- print("------------------------------------------------")
- function send()
- write("Enter the command: ")
- cmd = read()
- rednet.open(mSide)
- rednet.send(tId, cmd)
- print("Sucessfully sended")
- send()
- end
- send()
Add Comment
Please, Sign In to add comment