Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = sleep(0.2)
- a = peripheral.wrap("back")
- mon = peripheral.wrap("left")
- mon.clear()
- function init()
- ballMin = a.getEnergyStored()
- ballMax = a.getMaxEnergyStored()
- end
- init()
- function math()
- ballMinNow = ballMin
- sleep(0.5)
- ballMinLater = ballMin
- ballState = ballMinLater - ballMinNow
- mon.setCursorPos(1,2)
- mon.setTextColor(colors.white)
- print(ballMin)
- mon.write(ballState)
- end
- function update()
- math()
- end
- sleep(s)
- while true do
- mon.clear()
- update()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement