Update boot.js

master
RKBoss6 2025-07-21 21:24:11 -04:00 committed by GitHub
parent 89b45d0619
commit 4d7d0b3c56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -5,10 +5,6 @@
if (!("lcdTimeout" in s)) s.lcdTimeout = 5; // fallback so logic doesn't break
require("Storage").writeJSON("setting.json", s);
let unlockedWithLongPress = false;
const longPressTime=400; //(ms)
Bangle.on('lock', function(isLocked) {
@ -18,7 +14,6 @@
// Just unlocked — give a short delay and check if BTN1 is still pressed
setTimeout(() => {
if (digitalRead(BTN1)) {
unlockedWithLongPress = true;
//set brightness until. locked.
Bangle.setLCDBrightness(0.1);
@ -30,3 +25,4 @@
});
}