Advertisement
Guest User

startup

a guest
Sep 21st, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. core = peripheral.wrap("top")
  2. mon1 = peripheral.wrap("monitor_7")
  3. mon2 = peripheral.wrap("monitor_9")
  4.  
  5. while true do
  6.  
  7.   temp = core.getTemperature()
  8.   mon1.write("Reactor's Temp:")
  9.   mon1.write(temp)
  10.   mon2.write(temp)
  11.   if core.getTemperature() < 1500 then
  12.     rs.setOutput("bottom",true)
  13.   else
  14.     rs.setOutput("bottom",false)
  15.   end
  16.   os.sleep(1)
  17.   mon1.clear()
  18.   mon2.clear()
  19.   mon1.setCursorPos(1,1)
  20.   mon2.setCursorPos(1,1)
  21.   mon1.setTextScale(2)
  22.   mon2.setTextScale(4)
  23.   mon1.setTextColour(colours.white)
  24.   mon2.setTextColour(colours.white)
  25.   mon1.setBackgroundColour(colours.blue)
  26.   mon2.setBackgroundColour(colours.blue)
  27.  
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement