2 * Creates a new array with length equal to [entries]. Each entry has the
3 * value [milliseconds].
5 function newPattern(milliseconds, entries) {
6 var pattern = new Array(entries);
7 for (var i = 0; i < entries; i++) {
8 pattern[i] = milliseconds;
14 * Stop any currently running vibration. Call this to clean up internal state.
16 function stopVibration() {