Difference between revisions of "Category:Peripheral APIs"
From ComputerCraft Wiki
(Added note about needing to wrap a peripheral first.) |
|||
| 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() | ||
| + | |||
| + | Simply running something such as below without wrapping a peripheral will result in an error. | ||
| + | printer.newPage() | ||
[[Category: APIs]] | [[Category: APIs]] | ||
Revision as of 07:01, 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()
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.