Advertisement
Hikooshi

ic2

Jul 3rd, 2023 (edited)
664
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local component = require("component")
  2. local event = require("event")
  3.  
  4. local t = 0.1 -- время обновления цикла в секундах
  5.  
  6. local proxmfsu1 = component.proxy(component.get("Адрес хранилища"))
  7.  
  8. while true do
  9.     local eu1 = proxmfsu1.getStored()
  10.     component.gpu.set(40, 20, eu1 .. " EU")
  11.     local _, _, x, y = event.pull(t, "touch")
  12.     if x == 1 and y == 1 then
  13.         os.exit()
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement