edge: 'rising' added

pull/2243/head
thyttan 2022-11-07 20:13:21 +01:00 committed by GitHub
parent fceca1a5cc
commit 4d01bb44f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -18,9 +18,9 @@ Bangle.setUI({
back : load, // B2: Clicking the hardware button or pressing upper left corner turns off (where red back button would be)
btn : (n)=>{ // B1: Any button turns off
if (process.env.HWVERSION==1) {
setWatch(()=>load(), BTN1);
setWatch(()=>load(), BTN2);
setWatch(()=>load(), BTN3);
setWatch(()=>load(), BTN1, {edge: 'rising'});
setWatch(()=>load(), BTN2, {edge: 'rising'});
setWatch(()=>load(), BTN3, {edge: 'rising'});
}
},
});