Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mon = peripheral.wrap(“left”)
- while true do
- Mon.clear()
- Mon.setCursorPos(1,1)
- if rs.getInput(“right”) then
- Mon.setCursorPos(1,5)
- Mon.write(“ 1 b/s”)
- else
- Mon.setCursorPos(1,5)
- Mon.write(“ 0 b/s”)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement