MeXaN1cK

test

Apr 3rd, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. local cmp=require("component")
  2. term=require("term")
  3. gpu=cmp.gpu
  4. gpu.setBackground(0x0000FF)
  5. gpu.setResolution(45, 10)
  6. while true do
  7. proxMfsu1=cmp.proxy(cmp.get("094"))
  8. proxMfsu2=cmp.proxy(cmp.get("421"))
  9. proxMfsu3=cmp.proxy(cmp.get("ff8"))
  10. proxMfsu4=cmp.proxy(cmp.get("4de"))
  11. proxMfsu21=cmp.proxy(cmp.get("563"))
  12. proxMfsu22=cmp.proxy(cmp.get("c2b"))
  13. proxMfsu23=cmp.proxy(cmp.get("cf7"))
  14. proxMfsu24=cmp.proxy(cmp.get("47f"))
  15. term.setCursor(1,1)
  16. print("      Состояние энергосистемы блока A   ")
  17. gpu.setBackground(0x0000FF)
  18. print(" Конечное МФСУ          Раздаточное МФСУ")
  19. print("", proxMfsu21.getStored(),"     ", proxMfsu1.getStored())
  20. print("", proxMfsu22.getStored(),"     ", proxMfsu2.getStored())
  21. print("", proxMfsu23.getStored(),"     ", proxMfsu3.getStored())
  22. print("", proxMfsu24.getStored(),"     ", proxMfsu4.getStored())
  23. os.sleep(0,1)
  24. end
Add Comment
Please, Sign In to add comment