Redstone Interface
The redstone interface provides an omnidirectional bus to receive and emit redstone signals.
Use this to interact with primitive devices, such as doors and lamps, or other machinery offering a redstone based protocol.
It can be controlled from Lua using the high-level API, and from a Z80 using the mid-level API. The default Linux distribution offers Lua libraries for the former. For example:
local d = require("devices")local r = d:find("redstone")r:setRedstoneOutput("up", 15)API
Programs control the redstone interface through the
redstone device. See the redstone device reference for its methods and how sides are named.