Update boot.js

master
RKBoss6 2025-07-10 21:24:30 -04:00 committed by GitHub
parent e0657ab2ff
commit 618b2dac26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -8,7 +8,6 @@ require("Storage").writeJSON("setting.json", s);
let unlockedWithLongPress = false;
const longPressTime=400; //(ms)
Bangle.on('lock', function(isLocked) {
@ -18,7 +17,6 @@ Bangle.on('lock', function(isLocked) {
// Just unlocked — give a short delay and check if BTN1 is still pressed
setTimeout(() => {
if (digitalRead(BTN1)) {
unlockedWithLongPress = true;
Bangle.setLCDBrightness(0.1);
setTimeout(()=>{
Bangle.setLCDBrightness(0);