I see some strange "scrolling" in the emulator with the GPS code that might be related to this.
onGPS
You can fake the GPS event, just paste the following snippets on the left hand side. And then call it again. No GPS lock:
onGPS({})
And GPS lock:
onGPS({ "lat": 12.21, "lon": 13.31, "alt": 14.41, "speed": 15.52, "course": 6, "time": new Date(), "satellites": 8, "fix": 1 })
It's really strange, because the code starts with g.clear();. Is this the emulator?
g.clear();
4 Attachments
@AkosLukacs started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I see some strange "scrolling" in the emulator with the GPS code that might be related to this.
onGPS
You can fake the GPS event, just paste the following snippets on the left hand side. And then call it again.
No GPS lock:
And GPS lock:
It's really strange, because the code starts with
g.clear();
. Is this the emulator?4 Attachments