View difference between Paste ID: Sa2NtKzd and sfNtsJ3c
SHOW: | | - or go back to the newest paste.
1
local modem = peripheral.wrap("back")
2-
local batbox = peripheral.wrap("batbox_0")
2+
local mfsu = {}  -- "mfsu" is now an empty table.
3-
local power = batbox.getStored
3+
4
for i = 0,9 do
5
   mfsu[i+1] = peripheral.wrap("batbox_"..i)
6
end
7
local power = mfsu.getStored
8
9
while true do
10
  print ("Current Power: ")
11
  print (power)
12
  os.sleep(5)
13
end