1
0
Fork 0

Compass now uses falling edge for reset function so exiting app doesn't reset it - #2832

master
Gordon Williams 2023-06-22 08:46:53 +01:00
parent f98d6781bd
commit 93b40bb6b5
3 changed files with 3 additions and 2 deletions

View File

@ -6,3 +6,4 @@
0.06: Add button for force compass calibration
0.07: Use 360-heading to output the correct heading value (fix #1866)
0.08: Added adjustment for Bangle.js magnetometer heading fix
0.09: use falling edge of button to reset compass (allows exit without compass reset)

View File

@ -68,7 +68,7 @@ g.clear(1);
g.setFont("6x8").setFontAlign(0,0,3).drawString(/*LANG*/"RESET", g.getWidth()-5, g.getHeight()/2);
setWatch(function() {
Bangle.resetCompass();
}, (process.env.HWVERSION==2) ? BTN1 : BTN2, {repeat:true});
}, (process.env.HWVERSION==2) ? BTN1 : BTN2, {repeat:true, edge:"falling"});
Bangle.loadWidgets();
Bangle.drawWidgets();

View File

@ -1,7 +1,7 @@
{
"id": "compass",
"name": "Compass",
"version": "0.08",
"version": "0.09",
"description": "Simple compass that points North",
"icon": "compass.png",
"screenshots": [{"url":"screenshot_compass.png"}],