Difference between revisions of "Category:Peripheral APIs"
From ComputerCraft Wiki
(Added note about needing to wrap a peripheral first.) |
m (Added peripheral.call option) |
||
Line 2: | Line 2: | ||
local computer = peripheral.wrap('left') | local computer = peripheral.wrap('left') | ||
computer.turnOn() | computer.turnOn() | ||
+ | |||
+ | Alternatively, you can use [[peripheral.call]]. | ||
Simply running something such as below without wrapping a peripheral will result in an error. | Simply running something such as below without wrapping a peripheral will result in an error. |
Latest revision as of 07:13, 26 March 2014
To use any of the following APIs you must first wrap a peripheral. For example:
local computer = peripheral.wrap('left') computer.turnOn()
Alternatively, you can use peripheral.call.
Simply running something such as below without wrapping a peripheral will result in an error.
printer.newPage()
Pages in category "Peripheral APIs"
The following 4 pages are in this category, out of 4 total.