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

bundled cable input `?

Started by gigagames, 31 March 2012 - 10:18 PM
gigagames #1
Posted 01 April 2012 - 12:18 AM
Hi,
i can send a signal over it
shell.run ("redset", "side" "color", "true")
but can i check the status "input" ?
ComputerCraftFan11 #2
Posted 01 April 2012 - 12:44 AM
[quote
redstone.getBundledInput

Function redstone.getBundledInput
Syntax: redstone.getBundledInput(string side)
Returns: colors the colours that are activated on that side
Part of: ComputerCraft
API: Redstone

Examples:

Description: Checks whether the blue part of the back input is active
Code:
print(colors.test(redstone.getBundledInput("back"), colors.blue))
Output:
true if the blue part of the back input is active, otherwise false

Copied from http://computercraft.info/wiki/index.php?title=Redstone.getBundledInput

Use redstone.getBundledInput