Redstone I/O

The Redstone I/O is a block added by FirePeripherals. It allows the computers of ComputerCraft to interact with the Redstone of vanilla Minecraft as well as Red Alloy Wire and Insulated Wire of Project Red (see Usage).

If the mod MineChem is installed, then you can decompose the Redstone I/O with the Chemical Decomposer into various compounds of MineChem.

Usage


The Redstone I/O block has only one side, on which the Redstone, Red Alloy Wire and Insulated Wire can be connected. On one of the other sides must be placed a Computer or Advanced Computer of ComputerCraft. At first the Redstone I/O block must be wrapped to the computer with following command: redio = peripheral.wrap("side") For the parameter side the values "left", "right", "bottom", "top", "front" and "back" can be entered depending on which side of the computer the Redstone I/O block is.

If now redstone or a cable is connected to the Redstone I/O block, the player can interact with following different commands with the cable. Please note that the vanilla redstone has a strength between 0 and 15, unlike the wires and cables of Project Red with a strength between 0 and 255.

redio.setOutput(true)
 * The following command enables the Redstone I/O block and transmitts a redstone signal in all connected redstone lines and cables.

redio.setOutput(false)
 * The following command disables the Redstone I/O block and no redstone signal is transmitted in the connected redstone lines and cables.

redio.setOutput(50) With a 0 the block disables the redstone transmission. redio.setOutput(0)
 * The following command enables a redstone transmittion with a strength of 50, which means that the signal is transmitted only 50 blocks away in the cables of Project Red.

redio.getInput In the brackets the player can specify the search for a specific strength (number) of an incoming signal. For example a signal with a strength of 100 is searched an returns true if a signal with this strength enters the Restone I/O block. redio.getInput(100)
 * The following command searches for incoming redstone signals and return true or false if there is an incoming signal or not.

Bugs
After reloading the world, the Redstone I/O don't continues transmitting a redstone signal in Red Alloy Wires and Insulated Wires. The connection between these cables and the Redstone I/O block must be disconnected and reconnected, so that the block re-transmits a signal in the cable. To avoid this error, the Bundled I/O block can be used. The transmission in vanilla redstone works even after reloading.