Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("back")
- while true do
- x = p.getPressure()
- print(x)
- if x > 16 then
- rs.setOutput("left", true)
- else
- rs.setOutput("left", false)
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement