TheCryptek

[LUA][OC] PowerGrid Management

Aug 31st, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. local term = require("term")
  2. local event = require("event")
  3. local c = require("component")
  4. local mfsu1 = c.proxy(c.get("addr"))
  5. local mfsu2 = c.proxy(c.get("addr"))
  6. local mfsu3 = c.proxy(c.get("addr"))
  7.  
  8. --component.proxy(component.get("4charactersofaddress"))
  9.  
  10. while true do
  11. val1 = mfsu1.getStored()
  12. val2 = mfsu2.getStored()
  13. val3 = mfsu3.getStored()
  14.  
  15. cap1 = mfsu1.getCapacity()
  16. cap2 = mfsu2.getCapacity()
  17. cap3 = mfsu3.getCapacity()
  18.  
  19. term.clear()
  20. term.setCursor(1,1)
  21. print("MFSU1: " .. val1 .. "/" .. cap1)
  22. print("MFSU2: " .. val2 .. "/" .. cap2)
  23. print("MFSU3: " .. val3 .. "/" .. cap3)
  24. os.sleep(0)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment