Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local afsu = require('component').afsu
- local term = require('term')
- local bridge = require('component').openperipheral_bridge
- local namb = tostring(afsu.getEUStored())
- function addbox()
- bridge.addBox(1,30,200,12,0xFFFFFF,0.2)
- end
- while true do
- bridge.clear()
- addbox()
- text = (' энергии : '..afsu.getEUStored()..' из '..afsu.getEUCapacity())
- bridge.addText(20,32,text,0xFF0000)
- os.sleep(0.1)
- bridge.sync()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement