Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("top")
- monitor.clear()
- while true do
- while rs.getInput ("front")
- and rs.getInput ("back")
- == true do
- monitor.setTextScale(2)
- monitor.setCursorPos(11,3)
- monitor.write("Hello")
- sleep(5)
- monitor.clear()
- end
- while rs.getInput ("front",true) do
- monitor.setTextScale(2)
- monitor.setCursorPos(11,3)
- monitor.write("Front")
- sleep(5)
- monitor.clear()
- end
- while rs.getInput ("back",true) do
- monitor.setTextScale(2)
- monitor.setCursorPos(11,3)
- monitor.write("Back")
- sleep(5)
- monitor.clear()
- end
- if not rs.getInput("front","back") then
- monitor.setTextScale(2)
- monitor.setCursorPos(9,3)
- monitor.write("No Signal")
- sleep (5)
- monitor.clear()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment