Jump to content

Recommended Posts

Posted

I am trying to find a way to have a setup where a short redstone pulse, like one second, can keep a signal sent for about 9 minutes. I know you can do the lengthener with the Rednet controller, but 12 seconds is not near long enough. Is there a way to get this accomplished with Computercraft?

To clarify, I want the signal from a pressure plate (short burst) to keep a sticky piston engaged for about 9 minutes before turning off. Any help would be hugely appreciated :)

Posted

Try something like:


while true do

 os.pullEvent("redstone")

 if(rs.getInput("front") then

  rs.setOutput("back",true)

  os.sleep(60*9)

  rs.setOutput("back",false)

 end

end

Assuming your input is through the front and output back. Change those as necessary.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...