Advanced Peripherals Redstone Integrator Input Source
lua
telem.input.advancedPeripherals.redstoneIntegrator (
peripheralID: string,
categories?: string[] | '*',
sides?: string[] | '*'
)Mod Dependencies
Requires Advanced Peripherals.
See the Usage section for a complete list of the metrics in each category.
| Name | Type | Default |
|---|---|---|
peripheralID | string | nil |
| Peripheral ID of the Redstone Integrator | ||
categories | string[] | "*" | { "basic" } |
List of metric categories to query. The value lua | ||
sides | string[] | "*" | "*" |
List of sides to query. Can be relative ( | ||
Usage
lua
local telem = require 'telem'
local backplane = telem.backplane()
:addInput(
'my_redstoneIntegrator',
telem.input.advancedPeripherals.redstoneIntegrator('right', '*', '*')
)
:cycleEvery(5)()Given a Redstone Integrator peripheral on the right side of the computer, this appends the following metrics to the backplane (grouped by category here for clarity):
Basic
| Name | Value | Unit |
|---|---|---|
apredstone:input_NIndexed per side | 0 or 1 | |
apredstone:input_analog_NIndexed per side | 0 - 15 |