Add file getStorageEnergy

This commit is contained in:
2025-07-29 01:15:30 +02:00
parent 7ae7690241
commit 946cbad670

10
getStorageEnergy.lua Normal file
View 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
})