Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("FL01 --> FL02 = 32")
- print("FL01 --> FL03 = 51")
- print("FL02 --> FL01 = -32")
- print("FL02 --> FL03 = 19")
- print("FL03 --> FL01 = -51")
- print("FL03 --> FL02 = -19")
- write("> ")
- input = tonumber(read())
- if input > 0 then
- for i = 1, input do
- rednet.send(37, "ping")
- sleep(0.5)
- end
- elseif input < 0 then
- input = input * -1
- for i = 1, input do
- rednet.send(38, "ping")
- sleep(0.5)
- end
- else
- print("has to be not 0")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement