Advertisement
Guest User

startup

a guest
Apr 20th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. mfsu = peripheral.wrap("back")
  2. scherm = peripheral.wrap("top")
  3. while true do
  4.   capacity = mfsu.getCapacity()
  5.   stored = mfsu.getStored()
  6.  
  7.   percent = ((stored/capacity)*100)
  8.    
  9.   scherm.clear()
  10.   scherm.setCursorPos(1,1)
  11.   scherm.write("Capacity:   "..capacity)
  12.   scherm.setCursorPos(1,2)
  13.   scherm.write("Stored:     "..stored)
  14.   scherm.setCursorPos(1,3)
  15.   scherm.write("Percentage: "..percent)
  16.   os.sleep(.5)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement