This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
api:computer [2020/04/11 05:45] ocawesome101 [Computer API] add getDeviceInfo |
api:computer [2020/04/11 05:46] ocawesome101 [Computer API] |
||
---|---|---|---|
Line 57: | Line 57: | ||
Causes the computer to produce a beep sound at `frequency` Hz for `duration` seconds. This method is overloaded taking a single string parameter as a pattern of dots `.` and dashes `-` for short and long beeps respectively. | Causes the computer to produce a beep sound at `frequency` Hz for `duration` seconds. This method is overloaded taking a single string parameter as a pattern of dots `.` and dashes `-` for short and long beeps respectively. | ||
- | - `computer.beep([frequency:string or number[, duration: number])` | + | - `computer.getDeviceInfo(): table` |
Returns a table of information about installed devices in the computer. | Returns a table of information about installed devices in the computer. |