Difference between revisions of "Computer.turnOn"

From ComputerCraft Wiki
Jump to: navigation, search
(Added function page)
 
m (moved Computer.turnOn() to Computer.turnOn: Removed parenthesis to match other function pages.)
(No difference)

Revision as of 10:41, 1 June 2014

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.