Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mfsu = peripheral.wrap("back")
- scherm = peripheral.wrap("top")
- while true do
- capacity = mfsu.getCapacity()
- stored = mfsu.getStored()
- percent = ((stored/capacity)*100)
- scherm.clear()
- scherm.setCursorPos(1,1)
- scherm.write("Capacity: "..capacity)
- scherm.setCursorPos(1,2)
- scherm.write("Stored: "..stored)
- scherm.setCursorPos(1,3)
- scherm.write("Percentage: "..percent)
- os.sleep(.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement