tweak buzz lenght and strength

master
thyttan 2023-04-01 17:43:37 +02:00
parent d758d655b5
commit a6844f4f80
1 changed files with 1 additions and 1 deletions

View File

@ -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' });