Add file getStorageEnergy
This commit is contained in:
10
getStorageEnergy.lua
Normal file
10
getStorageEnergy.lua
Normal file
@ -0,0 +1,10 @@
|
||||
local storageEnergy = left.getStoredEnergy()
|
||||
|
||||
local modem = peripheral.find("modem")
|
||||
modem.open(1)
|
||||
|
||||
modem.transmit(1, 2, {
|
||||
type= "display",
|
||||
text = ("Storage energy : %s"):format(storageEnergy),
|
||||
color = colors.green
|
||||
})
|
||||
Reference in New Issue
Block a user