Difference between revisions of "Redstone.setBundledOutput"
From ComputerCraft Wiki
Line 4: | Line 4: | ||
|args=[[string]] side, [[int]] colors | |args=[[string]] side, [[int]] colors | ||
|api=redstone | |api=redstone | ||
− | |returns= | + | |returns=int 1,2,4,8,16,32 .... |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= |
Revision as of 00:25, 19 September 2012
Function redstone.setBundledOutput | |
No description provided. | |
Syntax | redstone.setBundledOutput(string side, int colors) |
Returns | int 1,2,4,8,16,32 .... |
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) |