Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("front")
- while true do
- rsStrength = rs.getAnalogInput("left")
- if rs.getAnalogInput("left") < 14 then
- rs.setOutput("bottom", true)
- mon.setBackgroundColor(colors.green)
- mon.write("BigReactor Active!")
- mon.setCursorPos(1,2)
- mon.write("RS Strength:" ..rsStrength)
- sleep(10)
- else
- rs.setOutput("bottom", false)
- mon.setBackgroundColor(colors.red)
- mon.write("BigReactor Disabled!")
- mon.setCursorPos(1,2)
- mon.write("RS Strengtgh:" ..rsStrength)
- sleep(10)
- end
- mon.clear()
- mon.setCursorPos(1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment