Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Induction Matrix monitor
- local modem = peripheral.wrap("left")
- local battery = peripheral.wrap("back")
- while true do
- local t = {}
- t[1] = 3 --Id
- t[2] = (battery.getStored() / battery.getMaxEnergyStored()) * 100
- t[3] = battery.getInput()
- t[4] = battery.getOutput()
- local msg = textutils.serialize(t)
- modem.transmit(1,10,msg) -- 1=sending chan , 10=reply chan , msg=message
- sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment