Difference between revisions of "Redstone.setBundledOutput"
From ComputerCraft Wiki
m (Remove redundant parens - it was confusing someone) |
m (Also make the function local) |
||
| Line 23: | Line 23: | ||
{{Example | {{Example | ||
|desc=Unsets the output (removes all power) | |desc=Unsets the output (removes all power) | ||
| − | |code=function unsetAll(sSide)<br /> redstone.setBundledOutput(sSide, 0)<br />end | + | |code=local function unsetAll(sSide)<br /> redstone.setBundledOutput(sSide, 0)<br />end |
|output=(nothing on the screen) | |output=(nothing on the screen) | ||
}} | }} | ||
Latest revision as of 07:20, 12 October 2018
| No description provided. | |
| Syntax | redstone.setBundledOutput(string side, number colors) |
| Returns | nil |
| 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
| Unsets the output (removes all power) | |
| Code |
local function unsetAll(sSide) |
| Output | (nothing on the screen) |