peripheral.call

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function peripheral.call
Calls a method on the peripheral attached to side.
Syntax peripheral.call((string) side, (string) methodName, arguments)
Returns Depends on the method called.
Part of ComputerCraft
API peripheral

Examples

Grid paper.png  Example
Clears the screen of any monitor attached to the right side of a computer/turtle.
Code
peripheral.call("right", "clear")
Output Clears the screen of any monitor attached to the right side of a computer/turtle.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox