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

Redstone Toggle Pulser (With Bundled Cables)

Started by Zet0r, 04 April 2013 - 02:58 AM
Zet0r #1
Posted 04 April 2013 - 04:58 AM
I felt like this program was needed. Basically, it checks for a toggle, and then pulses the same color of wire on the other side.

First, place Bundled Cable or other wires in the left side. When any color is turned on and kept on, like a lever, it will pulse the same colored wire out of the right side. When that color is turned off again, it will pulse once more. This is usefull to make levers act as a button.

For an example, another program I really like, the Dark Buttons, toggle redstone. But to make my elevator program work, it has to be pulses. Instead of making a Toggle Pulse Former out of RedPower gates for every single color (A color for each floor), I decided it would be more easy to just have them all go into a single computer. This is what I came up with.


It can handle all 16 colors of RedPower.
It can also handle normal redstone.
Pulse time can be customized.
Sleep times can be customized (after each toggle) or be turned off.
The computer will print every time it registers a change in redstone. This can be used for monitoring or de-bugging.

Screenshots and showcase:
Spoiler
The text says:
"When the Gray line is turned on, the lamp connected to the Gray wire recieves a pulse"





This text should be possible to read.
More pictures following!












Here is the Pastebin link!

pastebin get PsMGL5QD name

This is my second ever program. I hope it will prove useful to any of you! :D/>
theoriginalbit #2
Posted 04 April 2013 - 05:38 AM
looks good. a few ways I can see for improvement, but good for a second program… after a few more programs I'm sure you will come back to this and think "why did I do it like that", but its all in the learning experience… :)/>

just one suggestion though, you should make the sides easily configurable at the top for people too.
PixelToast #3
Posted 04 April 2013 - 06:50 AM
i would prefer making custom clocks myself but this is still useful for item moving, etc