Guest User

test

a guest
Feb 6th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. rednet.open("right")
  2. p1 = peripheral.wrap("monitor_2")
  3. p2 = peripheral.wrap("monitor_3")
  4. w1, h1 = p1.getSize()
  5. w2, h2 = p2.getSize()
  6.  
  7. p1.clear()
  8. p2.clear()
  9.  
  10. function check1()
  11.   id, rec1Heat, rec1Eu = rednet.receive()
  12. end
  13.  
  14. function display1()
  15.   p1.setCursorPos(1,3)
  16.   p1.write("Current Heat: ")
  17.     while true do
  18.       p1.write(rec1Heat)
  19.       p1.clear()
  20.       --p1.sleep(1)
  21.     end
  22.   p1.setCursorPos(1,5)
  23.   p1.write("Eu/T: ")
  24.     while true do
  25.       p1.write(rec1Eu)
  26.     end
  27. end
  28.  
  29. while true do
  30.   check1()
  31.   display1()
  32. end
Advertisement
Add Comment
Please, Sign In to add comment