Difference between revisions of "Redstone.setBundledOutput"
From ComputerCraft Wiki
Line 16: | Line 16: | ||
|desc=Toggles between the black/white and red/blue wires every two seconds | |desc=Toggles between the black/white and red/blue wires every two seconds | ||
|code=while(true) do<br /> redstone.setBundledOutput("back", colors.black+colors.white)<br /> sleep(2)<br /> redstone.setBundledOutput("back", colors.red+colors.blue)<br /> sleep(2)<br />end | |code=while(true) do<br /> redstone.setBundledOutput("back", colors.black+colors.white)<br /> sleep(2)<br /> redstone.setBundledOutput("back", colors.red+colors.blue)<br /> sleep(2)<br />end | ||
+ | |output=(nothing on the screen) | ||
+ | }} | ||
+ | {{Example | ||
+ | |desc=Unsets the output (removes all power) | ||
+ | |code=function unsetAll(sSide)<br /> redstone.setBundledOutput(sSide, 0)<br />end | ||
|output=(nothing on the screen) | |output=(nothing on the screen) | ||
}} | }} | ||
}} | }} |
Revision as of 19:36, 17 April 2012
Function redstone.setBundledOutput | |
No description provided. | |
Syntax | redstone.setBundledOutput(string side, int colors) |
Returns | ? |
Part of | ComputerCraft |
API | redstone |
Examples
The value is passed as an integer, so sending multiple colors is as easy as adding them together:
Example | |
Unsets the output (removes all power) | |
Code |
function unsetAll(sSide) |
Output | (nothing on the screen) |