Hydroxios

information_getter

Dec 21st, 2015
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("top")
  2. m = peripheral.wrap("back")
  3.  
  4. while true do
  5.  
  6.     m.clear()
  7.  
  8.     id,status = rednet.receive("e/d", 20480)
  9.     m.setCursorPos(1,1)
  10.     m.write(tostring(status))
  11.  
  12.     id,s_energy = rednet.receive("s_energy", 20480)
  13.     m.setCursorPos(1,2)
  14.     m.write(math.ceil(s_energy))
  15.  
  16.     id,plt_energy = rednet.receive("plt_energy", 20480)
  17.     m.setCursorPos(1,3)
  18.     m.write(math.floor(plt_energy))
  19.     os.sleep(1)
  20. end
RAW Paste Data