tweak buzz lenght and strength
parent
d758d655b5
commit
a6844f4f80
|
|
@ -1,6 +1,6 @@
|
||||||
let btnLoadTimeout = 1500; //Bangle.getOptions().btnLoadTimeout; // Hardcode value to minimize impact on load time at boot. Change to the commented out code to couple it to the actual system setting in the options object.
|
let btnLoadTimeout = 1500; //Bangle.getOptions().btnLoadTimeout; // Hardcode value to minimize impact on load time at boot. Change to the commented out code to couple it to the actual system setting in the options object.
|
||||||
let buzzTimeout;
|
let buzzTimeout;
|
||||||
setWatch(function(e) { buzzTimeout = setTimeout(Bangle.buzz, btnLoadTimeout-100, 30, 0.30); }, BTN, {
|
setWatch(function(e) { buzzTimeout = setTimeout(Bangle.buzz, btnLoadTimeout-100, 45, 0.35); }, BTN, {
|
||||||
repeat:true, edge:'rising' });
|
repeat:true, edge:'rising' });
|
||||||
setWatch(function(e) { if (buzzTimeout) clearTimeout(buzzTimeout); }, BTN, {
|
setWatch(function(e) { if (buzzTimeout) clearTimeout(buzzTimeout); }, BTN, {
|
||||||
repeat:true, edge:'falling' });
|
repeat:true, edge:'falling' });
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue