Difference between revisions of "Redstone.setAnalogOutput"
From ComputerCraft Wiki
Smiley43210 (Talk | contribs) (Created function page with example) |
(Changing int to number) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=redstone.setAnalogOutput | |name=redstone.setAnalogOutput | ||
− | |args={{type|string}} side, {{type| | + | |args={{type|string}} side, {{type|number}} strength |
|desc=Sets the strength of redstone output to ''strength'' on ''side''. ''strength'' must be an integer between 0 and 15, 0 being off, and 15 being the strongest. | |desc=Sets the strength of redstone output to ''strength'' on ''side''. ''strength'' must be an integer between 0 and 15, 0 being off, and 15 being the strongest. | ||
|api=redstone | |api=redstone |
Latest revision as of 13:35, 18 July 2013
Function redstone.setAnalogOutput | |
Sets the strength of redstone output to strength on side. strength must be an integer between 0 and 15, 0 being off, and 15 being the strongest. | |
Syntax | redstone.setAnalogOutput(string side, number strength) |
Returns | nil |
Part of | ComputerCraft |
API | redstone |
Examples
Additional Notes
- This function will throw an error if you give it an invalid side.
- List of possible sides: left, right, front, back, bottom, top