Generate a vibration with a given pattern.
a pattern - sequence of durations (in milliseconds) for which to turn on or off the vibrator.