Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
component:computer [2020/03/13 00:21]
ocawesome101 Added more documentation
component:computer [2020/03/13 00: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` +- `getDeviceInfo():​ table` ​  
- ​Returns a table of device information. Note that this is architecture-specific and some may not implement it at all. +  Returns a table of device information. Note that this is architecture-specific and some may not implement it at all. 
-- `crash(reason:​ string)` +- `crash(reason:​ string)` ​  
- Attempt ​to crash the computer for the specified reason. +  ​Attempts ​to crash the computer for the specified reason. 
-- `getArchitecture():​ string` +- `getArchitecture():​ string` ​  
- ​Returns the computer'​s current architecture. +  Returns the computer'​s current architecture. 
-- `isRobot(): boolean` +- `isRobot(): boolean` ​  
- ​Returns whether or not the computer is, in fact, a robot.+  Returns whether or not the computer is, in fact, a robot.
  
 Example use: Example use: