Difference between revisions of "Category:Peripheral APIs"
From ComputerCraft Wiki
m (Added peripheral.call option) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | APIs | + | 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() | ||
[[Category: APIs]] | [[Category: APIs]] |
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.