Difference between revisions of "Redstone.getBundledInput"
From ComputerCraft Wiki
| Line 11: | Line 11: | ||
|code=print(colors.test(redstone.getBundledInput("back"), colors.blue)) | |code=print(colors.test(redstone.getBundledInput("back"), colors.blue)) | ||
|output=true if the blue part of the back input is active, otherwise false | |output=true if the blue part of the back input is active, otherwise false | ||
| + | }} | ||
| + | |examples= | ||
| + | {{Example | ||
|desc=Checks wich color (int) is activated | |desc=Checks wich color (int) is activated | ||
|code=print(redstone.getBundledInput("back")) | |code=print(redstone.getBundledInput("back")) | ||
|output=the number (1-16) which cable is activated | |output=the number (1-16) which cable is activated | ||
| + | }} | ||
}} | }} | ||
}} | }} | ||
Revision as of 13:53, 13 May 2012
| No description provided. | |
| Syntax | redstone.getBundledInput(string side) |
| Returns | colors the colours that are activated on that side |
| Part of | ComputerCraft |
| API | redstone |
Examples
| Checks wich color (int) is activated | |
| Code |
print(redstone.getBundledInput("back"))
|
| Output | the number (1-16) which cable is activated |
}}