This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
component:computer [2015/01/14 23:40] 127.0.0.1 external edit |
component:computer [2020/03/13 01:26] (current) ocawesome101 |
||
---|---|---|---|
Line 13: | Line 13: | ||
Returns whether the computer is currently running. | Returns whether the computer is currently running. | ||
- `beep([frequency:number[, duration:number]])` | - `beep([frequency:number[, duration:number]])` | ||
- | Plays a tone, useful to alert users via audible feedback. Supports frequencies from 20 to 2000Hz, with a duration of up to 5 seconds. | + | Plays a tone, useful to alert users via audible feedback. Supports frequencies from 20 to 2000Hz, with a duration of up to 5 seconds. |
+ | - `getDeviceInfo(): table` | ||
+ | Returns a table of device information. Note that this is architecture-specific and some may not implement it at all. | ||
+ | - `crash(reason: string)` | ||
+ | Attempts to crash the computer for the specified reason. | ||
+ | - `getArchitecture(): string` | ||
+ | Returns the computer's current architecture. | ||
+ | - `isRobot(): boolean` | ||
+ | Returns whether or not the computer is, in fact, a robot. | ||
Example use: | Example use: |