Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
api:computer [2018/09/10 00:27]
payonel
api:computer [2018/09/10 00:28]
payonel
Line 53: Line 53:
   Generally it is more convenient to use `event.pull` from the [[api:​event|event]] library. The return value is the very same, but the `event` library provides some more options.   Generally it is more convenient to use `event.pull` from the [[api:​event|event]] library. The return value is the very same, but the `event` library provides some more options.
 - `computer.beep([frequency:​string or number[, duration: number])` - `computer.beep([frequency:​string or number[, duration: number])`
 +
   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.