Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
component:computer [2015/01/14 23:40]
127.0.0.1 external edit
component:computer [2020/03/13 01:21]
ocawesome101 Added more documentation
Line 14: Line 14:
 - `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)`
 + ​Attempt 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: