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

Redpower + Computercraft Question.

Started by placlu, 01 July 2012 - 02:25 AM
placlu #1
Posted 01 July 2012 - 04:25 AM
Hello, since you guys helped me before, I thought I'd ask here again since there's not much information (that I can find anyway) around the net.

My question simply is how to stop a signal from bundled cables.

Normally in redstone you have like rs.setOutput("<side>'', true/false) to turn it on and off.
How can I do this with bundled cables.
rs.setBundledOutput("back", colors.brown) turns it on.. and leaves it on, but how do I turn it off ?

Ultimately I'm trying to build a program that if you type a command, It sends a current down that path for how ever many seconds, and then turns itself off so I can input another command.
Pinkishu #2
Posted 01 July 2012 - 02:02 PM
well 0 = no colors so
rs.setBundledOutput("back",0) turn all colors off
for specific colors i think you do something like
rs.setBundledOutput("back",colors.subtract(rs.getBundledOutput("back"), colors.brown))
to turn brown off and
rs.setBundledOutput("back",colors.combine(rs.getBundledOutput("back"),colors.brown))
to turn brown on