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

Redstone Counter (Repeat Signal x Times)

Started by Macapple, 09 October 2013 - 05:31 AM
Macapple #1
Posted 09 October 2013 - 07:31 AM
Title : Redstone Counter (Repeat Signal x Times)

Description :
Hi,i'm trying to make a counter to repeat a short redstone pulse (0.5s) a set number of times.
I used x=tonumber(read())
but i dunno how to make the redstone signal to repeat.

Any help is appreciated :)/>

-Mac
Bubba #2
Posted 09 October 2013 - 09:58 AM
This is quite simple. Use the following resources and I'm sure you'll have no difficulty piecing something together:
1. The PIL
2. The redstone API. Specifically redstone.setOutput.

You have the right idea with tonumber(read()), now just use the for loop and the redstone API to execute the rest.