Difference between revisions of "Redstone.getBundledOutput"
From ComputerCraft Wiki
(Undo revision 1968 by 91.121.27.33 (talk)) |
(changed the content to the function template, anyone please review this - never used the function) |
||
| Line 1: | Line 1: | ||
| − | + | {{lowercase}} | |
| − | + | {{Function | |
| − | + | |name=redstone.getBundledOutput | |
| − | + | |args=[[string]] side | |
| − | + | |api=redstone | |
| − | + | |returns=[[int (type)|int]] the value of the colors that are activated on that side | |
| − | + | |addon=ComputerCraft | |
| − | + | |examples= | |
| − | + | {{Example | |
| − | + | |desc=Prints the value of the active colors on the back | |
| − | + | |code=[[print]] (redstone.getBundledOutput ("back")) | |
| − | + | |output=the value of the colors, for example 1 if only white is active. | |
| − | + | }} | |
| − | + | }} | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Revision as of 17:22, 8 July 2012
| No description provided. | |
| Syntax | redstone.getBundledOutput(string side) |
| Returns | int the value of the colors that are activated on that side |
| Part of | ComputerCraft |
| API | redstone |
Examples
| Prints the value of the active colors on the back | |
| Code |
print (redstone.getBundledOutput ("back")) |
| Output | the value of the colors, for example 1 if only white is active. |