This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
yqz's profile picture

Simple Redstone Pulser Every 130 Seconds X Times With Extra Stuff

Started by yqz, 18 December 2013 - 10:22 PM
yqz #1
Posted 18 December 2013 - 11:22 PM
I want a computer which will pulse out a redstone signal every 130 seconds an x amount of times, as defined by the player. [Read()]. Also, while it is running, I want it to stay something along the lines of being activated until it finished the xth pulse.
One of my worries is if 130 seconds if enough time (I think it is) for the computer to sleep for without ever yielding, even after 100+ times.

I'm new to this, but I know some of the basics. I want the redstone signal to come from the back [rs.setOutput("back",true)] then immediately stop the signal. As a test, I asked for it to do it twice, but I keep getting attempt to call nill because I don't have it set up right.
Lyqyd #2
Posted 19 December 2013 - 12:47 AM
Please post your code. Computers yield when they sleep. You can't busy spin for 130 seconds to prevent yielding (as the yeild protection would kick in), nor should you have any desire to do so whatsoever.
yqz #3
Posted 19 December 2013 - 07:48 PM
I decided not to add the continuous message, and I got it working as I described above (I just had to move a the location of the variable.) …Due to this, I no longer require aid on this matter, so you can lock the thread now.