mirror of https://github.com/espruino/BangleApps
Compass now uses falling edge for reset function so exiting app doesn't reset it - #2832
parent
f98d6781bd
commit
93b40bb6b5
|
@ -6,3 +6,4 @@
|
||||||
0.06: Add button for force compass calibration
|
0.06: Add button for force compass calibration
|
||||||
0.07: Use 360-heading to output the correct heading value (fix #1866)
|
0.07: Use 360-heading to output the correct heading value (fix #1866)
|
||||||
0.08: Added adjustment for Bangle.js magnetometer heading fix
|
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)
|
|
@ -68,7 +68,7 @@ g.clear(1);
|
||||||
g.setFont("6x8").setFontAlign(0,0,3).drawString(/*LANG*/"RESET", g.getWidth()-5, g.getHeight()/2);
|
g.setFont("6x8").setFontAlign(0,0,3).drawString(/*LANG*/"RESET", g.getWidth()-5, g.getHeight()/2);
|
||||||
setWatch(function() {
|
setWatch(function() {
|
||||||
Bangle.resetCompass();
|
Bangle.resetCompass();
|
||||||
}, (process.env.HWVERSION==2) ? BTN1 : BTN2, {repeat:true});
|
}, (process.env.HWVERSION==2) ? BTN1 : BTN2, {repeat:true, edge:"falling"});
|
||||||
|
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "compass",
|
"id": "compass",
|
||||||
"name": "Compass",
|
"name": "Compass",
|
||||||
"version": "0.08",
|
"version": "0.09",
|
||||||
"description": "Simple compass that points North",
|
"description": "Simple compass that points North",
|
||||||
"icon": "compass.png",
|
"icon": "compass.png",
|
||||||
"screenshots": [{"url":"screenshot_compass.png"}],
|
"screenshots": [{"url":"screenshot_compass.png"}],
|
||||||
|
|
Loading…
Reference in New Issue