Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test = peripheral.wrap("back")
- m = peripheral.wrap("top")
- max = test.getMaxEnergyStored()
- current = test.getEnergyStored()
- while true do
- m.clear()
- m.setBackgroundColour(colors.green)
- m.setCursorPos(1,2)
- m.setTextColor(colors.black)
- m.setTextScale(1)
- m.write("Power: "..test.getEnergyStored())
- m.setCursorPos(1,4)
- m.write("Total: "..max)
- m.setCursorPos(1,5)
- usage = current-test.getEnergyStored()
- m.write("Usage: "..usage)
- sleep(01)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement