Computer.turnOn

From ComputerCraft Wiki
Revision as of 02:43, 12 May 2013 by TheVarmari (Talk | contribs) (Added function page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Grid Redstone.png  Function computer.turnOn
Turns on a computer or turtle wrapped to the "computer" variable
Syntax computer.turnOn()
Returns nil
Part of ComputerCraft
API peripheral

Examples

Grid paper.png  Example
Turns on the computer or turtle on the right side of the calling machine.
Code
local handle = peripheral.wrap("right") 
handle.turnOn()
Output Turns on any computer to the right of the computer/turtle.