Posted 18 October 2012 - 07:59 PM
Im trying to create a simple program that means when a redstone input is detected on the left it pulses twice on the right but am failing miserably, please can someone help? thanks for your time.
function pulse()
rs.setOutput("right", true)
sleep(1)
rs.setOutput("right", false)
end
while true do
if rs.getInput("left") then
pulse()
pulse()
end
end
Herefunction pulse() rs.setOutput("right", true) sleep(1) rs.setOutput("right", false) end while true do if rs.getInput("left") then pulse() pulse() end end