Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- p = peripheral.wrap("right")
- while true do
- rs.setAnalogOutput("front",5)
- pressure = p.getPressure()
- mon.setTextScale(1.5)
- mon.clear()
- mon.setCursorPos(1,2)
- mon.write(string.sub(pressure,1,4))
- mon.setCursorPos(1,3)
- mon.write("Bars")
- if(pressure < 19.5) then
- rs.setOutput("right",false)
- else
- rs.setOutput("right",true)
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement