mon = peripheral.wrap("back")
mon.setTextScale(2)
if colors.test(front, colors.lime) == true then
mon.setCursorPos(1,1)
mon.clearLine(1)
mon.write("Power Level: 100%")
elseif colors.test(front, colors.yellow) == true then
mon.setCursorPos(1,1)
mon.clearLine(1)
mon.write("Power Level: 75%")
elseif colors.test(front, colors.lightBlue) == true then
mon.setCursorPos(1,1)
mon.clearLine(1)
mon.write("Power Level: 50%")
elseif colors.test(front, colors.magneta) == true then
mon.setCursorPos(1,1)
mon.clearLine(1)
mon.write("Power Level: 25%")
else
mon.setCursorPos(1,1)
mon.clearLine(1)
mon.write("Power Level: 0%")
end
Edited by Lyqyd, 18 November 2012 - 01:01 PM.
Change quote tags to code tags











