Posted 18 July 2014 - 09:57 AM
while true do
sleep(1)
mon = peripheral.wrap("right")
mon.clear()
mon.setTextScale(2)
ctrl = sensors.getController()
data = sensors.getSensors(ctrl)
reactorSensor = data[1]
data = sensors.getSensorInfo(ctrl,reactorSensor)
sensors.setSensorRange(ctrl,reactorSensor,"2")
data = sensors.getProbes(ctrl,reactorSensor)
eustorageProbe = data[3]
data = sensors.getAvailableTargetsforProbe(ctrl,reactorSensor,eustorageProbe)
mfsuTarget = data[3]
sensors.setTarget(ctrl,reactorSensor,mfsuTarget)
data = sensors.getSensorReadingAsDict(ctrl,reactorSensor,mfsuTarget,eustorageProbe)
mon.setCursorPos(1, 1)
mon.write("MFSU EU:"..data.energy)
mon.setCursorPos(1, 2)
mon.write("MFSU Out:"..data.output)
end
How to convert to write all MFSU? :/