<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ocr.michiyo.me/w/index.php?action=history&amp;feed=atom&amp;title=Component%2Fcomputer</id>
	<title>Component/computer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ocr.michiyo.me/w/index.php?action=history&amp;feed=atom&amp;title=Component%2Fcomputer"/>
	<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=Component/computer&amp;action=history"/>
	<updated>2026-08-24T13:45:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://ocr.michiyo.me/w/index.php?title=Component/computer&amp;diff=1142&amp;oldid=prev</id>
		<title>imported&gt;OCDoc Import: Imported from legacy OpenComputers documentation at ocdoc.cil.li</title>
		<link rel="alternate" type="text/html" href="https://ocr.michiyo.me/w/index.php?title=Component/computer&amp;diff=1142&amp;oldid=prev"/>
		<updated>2026-08-24T08:08:27Z</updated>

		<summary type="html">&lt;p&gt;Imported from legacy OpenComputers documentation at ocdoc.cil.li&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Component: Computer =&lt;br /&gt;
&lt;br /&gt;
Computers provide a couple of API callbacks. Note that these can only be called by the computer itself, or its direct neighbors (i.e. other computers that share a face with that computer). Also note that since robots cannot interact with external components they cannot start/stop/query computers, but computers can interact with robots sitting next to them.&lt;br /&gt;
&lt;br /&gt;
Component name: `computer`. Callbacks:&lt;br /&gt;
&lt;br /&gt;
* `start(): boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Tries to start the computer. Returns `true` on success, `false` otherwise. Note that this will also return `false` if the computer was already running. If the computer is currently shutting down, this will cause the computer to reboot instead.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `stop(): boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Tries to stop the computer. Returns `true` on success, `false` otherwise. Also returns `false` if the computer is already stopped.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `isRunning(): boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns whether the computer is currently running.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `beep([frequency:number[, duration:number]])`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Plays a tone, useful to alert users via audible feedback. Supports frequencies from 20 to 2000Hz, with a duration of up to 5 seconds.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `getDeviceInfo(): table`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns a table of device information. Note that this is architecture-specific and some may not implement it at all.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `crash(reason: string)`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Attempts to crash the computer for the specified reason.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `getArchitecture(): string`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns the computer&amp;#039;s current architecture.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* `isRobot(): boolean`&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Returns whether or not the computer is, in fact, a robot.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Example use: ```lua local component = require(&amp;quot;component&amp;quot;) local c = component.computer -- get primary computer, e.g. self print(c.isRunning()) -- definitely true if it&amp;#039;s this computer c.stop() -- basically like computer.shutdown() if it&amp;#039;s this computer ``` ==&lt;br /&gt;
&lt;br /&gt;
{{:Component/contents}}&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;OCDoc Import</name></author>
	</entry>
</feed>