Difference between revisions of "Redstone.setBundledOutput"
From ComputerCraft Wiki
Line 7: | Line 7: | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= | ||
+ | ===Basic usage=== | ||
{{Example | {{Example | ||
|desc=Toggles between the black and white wires every two seconds | |desc=Toggles between the black and white wires every two seconds | ||
Line 12: | Line 13: | ||
|output=(nothing on the screen) | |output=(nothing on the screen) | ||
}} | }} | ||
+ | ===Combining outputs=== | ||
The value is passed as an integer, so sending multiple colors is as easy as adding them together: | The value is passed as an integer, so sending multiple colors is as easy as adding them together: | ||
{{Example | {{Example | ||
Line 18: | Line 20: | ||
|output=(nothing on the screen) | |output=(nothing on the screen) | ||
}} | }} | ||
+ | ===Clearing the output=== | ||
{{Example | {{Example | ||
|desc=Unsets the output (removes all power) | |desc=Unsets the output (removes all power) |
Revision as of 19:37, 17 April 2012
Function redstone.setBundledOutput | |
No description provided. | |
Syntax | redstone.setBundledOutput(string side, int colors) |
Returns | ? |
Part of | ComputerCraft |
API | redstone |
Examples
Basic usage
Combining outputs
The value is passed as an integer, so sending multiple colors is as easy as adding them together:
Clearing the output
Example | |
Unsets the output (removes all power) | |
Code |
function unsetAll(sSide) |
Output | (nothing on the screen) |