Redstone Integrator¶
The Redstone Integrator is able to interact with redstone. You can use the same code you would use for a computer on a Redstone Integrator.
You may need this peripheral for cases where you need to output redstone signals on more sides than a regular computer has to offer.
| Peripheral Name | Interfaces with | Has events | Introduced in |
|---|---|---|---|
| redstoneIntegrator | Redstone | No | 0.5.3b |
Functions¶
getInput¶
getInput(side: string) -> boolean
Returns true or false depending on if the redstone at the given side is on.
Since version 0.7r
You can now use both relative (right, left, front, back, top, bottom) and cardinal (north, south, east, west, up, down) directions for the side argument.
getOutput¶
getOutput(side: string) -> boolean
Returns true or false depending on if the Redstone Integrator is sending a signal to the given side.
getAnalogInput¶
getAnalogInput(side: string) -> number
Returns the redstone level input on the given side.
Tip
You can also use Analogue instead of Analog (ex. getAnalogueInput) both work exactly the same.
getAnalogOutput¶
getAnalogOutput(side: string) -> number
Returns the redstone level being output by the Redstone Integrator on the given side.
setOutput¶
setOutput(side: string, powered: boolean) -> void
Sets the redstone level output to 0 or 15 on the given side depending on powered.
1 2 3 4 5 | |
setAnalogOutput¶
setAnalogOutput(side: string, power: number) -> void
Sets the redstone level output on the given side to the given power level.
Changelog/Trivia¶
0.5.3b
Added the lovely Redstone Integrator.
