Module: rgjs/hardware

RGJS6 Hardware module.

Methods


<static> vibrate( [pattern])

Use device vibration motor.

Parameters:
Name Type Argument Default Description
pattern number | array <optional>
50

Vibration length in ms. {array} is also allowed, ex: [50,50,50].

Example
rgjs.hardware.vibrate([50, 50, 50]);