Posted 20 August 2012 - 04:23 PM
I have made this small piece of code:
But it doesnt seem to work (its supposed to display 1 on the monitor when it receives a green bundled input).
Could someone show me whats wrong with it.
while true do
hold = os.pullEvent()
if hold == "redstone" then
term.clear
term.setCursorPos(1,1)
mon = peripheral.wrap( "left" )
mon.setTextScale(5)
if rs.testBundledInput("right", colors.green) then
mon.write ("1")
else
mon.clear()
end
end
end
But it doesnt seem to work (its supposed to display 1 on the monitor when it receives a green bundled input).
Could someone show me whats wrong with it.