mirror of https://github.com/espruino/BangleApps
Updated README and added screenshots
parent
dc3dda8235
commit
bce96a0000
|
@ -1,5 +1,16 @@
|
|||
# GPS Touch
|
||||
|
||||
- A touch controlled GPS watch for Bangle JS 2
|
||||
- Key feature is the conversion of Lat/Lon into Ordinance Servey Grid Reference
|
||||
- Swipe left and right to change the display
|
||||
- Select GPS and switch the GPS On or Off by touching twice in the top half of the display
|
||||
- Select LOGGER and switch the GPS Recorder On or Off by touching twice in the top half of the display
|
||||
- Displays the GPS time in the bottom half of the screen when the GPS is powered on, otherwise 00:00:00
|
||||
- Select display of Course, Speed, Altitude, Longitude, Latitude, Ordinance Servey Grid Reference
|
||||
|
||||
## Screenshots
|
||||
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
const h = g.getHeight();
|
||||
const w = g.getWidth();
|
||||
let geo = require("geotools");
|
||||
let last_fix;
|
||||
|
||||
function resetLastFix() {
|
||||
|
@ -99,7 +100,7 @@ const infoData = {
|
|||
calc: () => formatTime(last_fix.time),
|
||||
},
|
||||
OS_REF: {
|
||||
calc: () => 'NZ 208 987',
|
||||
calc: () => last_fix.lat == 0 ? "Searching.." : geo.gpsToOSMapRef(last_fix),
|
||||
},
|
||||
GPS_POWER: {
|
||||
calc: () => (Bangle.isGPSOn()) ? 'GPS On' : 'GPS Off',
|
||||
|
@ -204,7 +205,6 @@ Bangle.on('lcdPower', on => {
|
|||
draw();
|
||||
});
|
||||
|
||||
|
||||
resetLastFix();
|
||||
|
||||
// add listenner if already powered on, plus tag app
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
Loading…
Reference in New Issue