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

Bundled wires.

Started by deathinfront, 24 July 2012 - 03:30 AM
deathinfront #1
Posted 24 July 2012 - 05:30 AM
I am having trouble with bundled wires. I am attempting to make a faster, more compact zipper elevator using computercraft and redpower.. I was wondering if it is possible to in any way make a binary number represent the states of the colors. the functions take too long to type out. I was also wondering if there was a way to perform a bitshift.
Lyqyd #2
Posted 24 July 2012 - 06:05 AM
Yep. The colors.<colorname> variables are just names for the numbers. Bit shifting can be accomplished by multiplying or dividing by two, but you'll have to handle the endpoints manually.